<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.evloop.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'evloop.idle.php', 1 => 'EvLoop::idle', 2 => 'Creates EvIdle watcher object associated with the current event loop instance', ), 'up' => array ( 0 => 'class.evloop.php', 1 => 'EvLoop', ), 'prev' => array ( 0 => 'evloop.fork.php', 1 => 'EvLoop::fork', ), 'next' => array ( 0 => 'evloop.invokepending.php', 1 => 'EvLoop::invokePending', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ev/evloop/idle.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="evloop.idle" class="refentry"> <div class="refnamediv"> <h1 class="refname">EvLoop::idle</h1> <p class="verinfo">(PECL ev >= 0.2.0)</p><p class="refpurpose"><span class="refname">EvLoop::idle</span> — <span class="dc-title">Creates EvIdle watcher object associated with the current event loop instance</span></p> </div> <div class="refsect1 description" id="refsect1-evloop.idle-description"> <h3 class="title">说明</h3> <div class="methodsynopsis dc-description"> <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>EvLoop::idle</strong></span>(<span class="methodparam"> <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$callback</code> </span>, <span class="methodparam"> <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$data</code> <span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span> </span>, <span class="methodparam"> <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$priority</code> <span class="initializer"> = 0</span> </span>): <span class="type"><a href="class.evidle.php" class="type EvIdle">EvIdle</a></span></div> <p class="para rdfs-comment"> Creates EvIdle watcher object associated with the current event loop instance </p> </div> <div class="refsect1 parameters" id="refsect1-evloop.idle-parameters"> <h3 class="title">参数</h3> <p class="para"> All the parameters have the same meaning as for <span class="methodname"><a href="evidle.construct.php" class="methodname">EvIdle::__construct()</a></span> </p> </div> <div class="refsect1 returnvalues" id="refsect1-evloop.idle-returnvalues"> <h3 class="title">返回值</h3> <p class="para"> Returns EvIdle object on success. </p> </div> <div class="refsect1 seealso" id="refsect1-evloop.idle-seealso"> <h3 class="title">参见</h3> <ul class="simplelist"> <li> <span class="methodname"><a href="evidle.construct.php" class="methodname" rel="rdfs-seeAlso">EvIdle::__construct()</a> - Constructs the EvIdle watcher object</span> </li> </ul> </div> </div><?php manual_footer($setup); ?>