array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'evloop.stat.php', 1 => 'EvLoop::stat', 2 => 'Creates EvStat watcher object associated with the current event loop instance', ), 'up' => array ( 0 => 'class.evloop.php', 1 => 'EvLoop', ), 'prev' => array ( 0 => 'evloop.signal.php', 1 => 'EvLoop::signal', ), 'next' => array ( 0 => 'evloop.stop.php', 1 => 'EvLoop::stop', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ev/evloop/stat.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EvLoop::stat

(PECL ev >= 0.2.0)

EvLoop::statCreates EvStat watcher object associated with the current event loop instance

说明

final public EvLoop::stat(
     string $path ,
     float $interval ,
     callable $callback ,
     mixed $data = null ,
     int $priority = 0
): EvStat

Creates EvStat watcher object associated with the current event loop instance

参数

All parameters have the same meaning as for EvSignal::__construct()

返回值

Returns EvStat object on success

参见