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.

Class synopsis

finalclassparallel\EventsimplementsCountable, Traversable {
publicsetInput(Input$input): void
publicaddFuture(string$name, parallel\Future$future): void
publicremove(string$target): void
publicsetBlocking(bool$blocking): void
publicsetTimeout(int$timeout): void
}

Table of Contents

To Top