The parallel\Events class

The Event Loop

The Event loop monitors the state of sets of futures and or channels (targets) in order to perform read ( parallel\Future::value, parallel\Channel::recv) and write ( parallel\Channel::send) operations as the targets become available and the operations may be performed without blocking the event loop.

クラス概要

parallel\Events
final class parallel\Events implements Countable, Traversable {
/* Input */
public void setInput(Input $input)
/* Targets */
public void addChannel(parallel\Channel $channel)
public void addFuture(string $name, parallel\Future $future)
public void remove(string $target)
/* Behaviour */
public void setBlocking(bool $blocking)
public void setTimeout(int $timeout)
/* Polling */
public parallel\Events\Eventnull poll()
}
目次