When an Event is returned, Event::$object shall be removed from the loop that returned it, should the event be a write event the Input for Event::$source shall also be removed.
The parallel\Events\Event class
(0.9.0)
Event Objects
When an Event is returned, Event::$object shall be removed from the loop that returned it, should the event be a write event
the Input for Event::$source shall also be removed.
Class synopsis
final
class parallel\Events\Event
{
/* Shall be one of Event\Type constants */
/* Shall be the source of the event (target name) */
/* Shall be either Future or Channel */
/* Shall be set for Read/Error events */
public
$value;
}
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。