« parallel\Channel::close
parallel\Events::setBlocking »

The parallel\Events class

(0.9.0)

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.

クラス概要

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

目次

関連キーワード:
parallel   Events   Channel   Targets   setBlocking   Event   Input   Behaviour   loop   targets   Future   operations   blocking   setInput   addChannel   addFuture   remove   setTimeout   Polling   poll   Loop   monitors   state   sets   futures
関連する関数・ページ:
parallel-events.addchannel   parallel-events.addfuture   parallel-events.poll   parallel-events.remove   parallel-events.setinput   parallel-events.settimeout