Home
last modified time | relevance | path

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

/ext-fiber/examples/
H A D002-read-write.php60 $loop = new EventLoop; variable
63 $fiber = new Fiber(function () use ($loop, $read): void {
67 $loop->read($read, fn() => $fiber->resume());
76 $loop->defer(fn() => $fiber->start());
79 $loop->defer(fn() => fwrite($write, "Hello, world!"));
82 $loop->run();
/ext-fiber/
H A DREADME.md135 …a fiber to store a reference to itself elsewhere, such as within an event loop callback or an arra…

Completed in 7 milliseconds