<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.swoole-event.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'swoole-event.wait.php',
    1 => 'Swoole\\Event::wait',
    2 => 'Start event loop',
  ),
  'up' => 
  array (
    0 => 'class.swoole-event.php',
    1 => 'Swoole\\Event',
  ),
  'prev' => 
  array (
    0 => 'swoole-event.set.php',
    1 => 'Swoole\\Event::set',
  ),
  'next' => 
  array (
    0 => 'swoole-event.write.php',
    1 => 'Swoole\\Event::write',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/swoole/event/wait.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="swoole-event.wait" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Swoole\Event::wait</h1>
  <p class="verinfo">(PECL swoole &gt;= 1.9.0)</p><p class="refpurpose"><span class="refname">Swoole\Event::wait</span> &mdash; <span class="dc-title">Start event loop</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-swoole-event.wait-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="modifier">function</span> <span class="methodname"><strong>Swoole\Event::wait</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   Starts the event loop. Place this at the end of your PHP program.
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swoole-event.wait-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   No return value.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-swoole-event.wait-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="function"><strong>Swoole\Event::wait()</strong></span> example</strong></p>
    <div class="example-contents">
     <div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
Swoole\Timer</span><span style="color: #007700">::</span><span style="color: #0000BB">tick</span><span style="color: #007700">(</span><span style="color: #0000BB">1000</span><span style="color: #007700">, function () {
    echo </span><span style="color: #DD0000">"hello\n"</span><span style="color: #007700">;
});

</span><span style="color: #0000BB">Swoole\Event</span><span style="color: #007700">::</span><span style="color: #0000BB">wait</span><span style="color: #007700">();
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
    </div>

   </div>
  </p>
 </div>

</div><?php manual_footer($setup); ?>