Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 13567

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Construct a Swoole Channel</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swoole-channel.html">Swoole\Channel</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-channel.destruct.html">Swoole\Channel::__destruct</a></div>
 <div class="up"><a href="class.swoole-channel.html">Swoole\Channel</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="swoole-channel.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Swoole\Channel::__construct</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PECL swoole &gt;= 1.9.0)</p><p class="refpurpose"><span class="refname">Swoole\Channel::__construct</span> &mdash; <span class="dc-title">Construct a Swoole Channel</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-swoole-channel.construct-description">
  <h3 class="title">Description</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Swoole\Channel::__construct</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$size</code></span>
   )</div>

  <p class="para rdfs-comment">
    Swoole channel is memory data structure works like Chan in Golang, implemented based on 
    shared memory and mutex locks. It can be used as high performance message queue in memory.
    Construct a swoole channel with a fixed size. The minimum size of a swoole channel is 64KB.
    Exceptions will be thrown if there is not enough memory.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-swoole-channel.construct-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">size</code></dt>

    <dd>

     <p class="para">
      The size of the Swoole channel.
     </p>
    </dd>

   
  </dl>

 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.swoole-channel.html">Swoole\Channel</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swoole-channel.destruct.html">Swoole\Channel::__destruct</a></div>
 <div class="up"><a href="class.swoole-channel.html">Swoole\Channel</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>