Home
last modified time | relevance | path

Searched refs:read (Results 1 – 1 of 1) sorted by relevance

/ext-fiber/examples/
H A D002-read-write.php7 private array $read = []; variable in EventLoop
19 $this->select($this->read);
23 private function select(array $read): void argument
30 foreach ($read as $id => $resource) {
42 public function read($resource, callable $callback): void function in EventLoop
45 $this->read[$id] = $resource;
50 [$read, $write] = stream_socket_pair(
57 stream_set_blocking($read, false);
63 $fiber = new Fiber(function () use ($loop, $read): void {
67 $loop->read($read, fn() => $fiber->resume());
[all …]

Completed in 3 milliseconds