array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'parallel-events.settimeout.php', 1 => 'parallel\\Events::setTimeout', ), 'up' => array ( 0 => 'class.parallel-events.php', 1 => 'parallel\\Events', ), 'prev' => array ( 0 => 'parallel-events.setblocking.php', 1 => 'parallel\\Events::setBlocking', ), 'next' => array ( 0 => 'parallel-events.setinput.php', 1 => 'parallel\\Events::setInput', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/parallel/parallel/events/settimeout.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(0.9.0)
parallel\Events::setTimeout — Behaviour
By default when events are polled for, blocking will occur (at the PHP level) until the first event can be returned: Setting the timeout causes an exception to be thrown when the timeout is reached.
This differs from setting blocking mode to false
with parallel\Events::setBlocking(), which will not cause an exception to be thrown.
Shall set the timeout in microseconds
Shall throw parallel\Events\Error if loop is non-blocking.