Lines Matching refs:fiber
4 fiber
8 $fiber = new Fiber(function (): void {
9 $fiber = Fiber::getCurrent();
11 var_dump($fiber->isStarted());
12 var_dump($fiber->isRunning());
13 var_dump($fiber->isSuspended());
14 var_dump($fiber->isTerminated());
19 var_dump($fiber->isStarted());
20 var_dump($fiber->isRunning());
21 var_dump($fiber->isSuspended());
22 var_dump($fiber->isTerminated());
24 $fiber->start();
27 var_dump($fiber->isStarted());
28 var_dump($fiber->isRunning());
29 var_dump($fiber->isSuspended());
30 var_dump($fiber->isTerminated());
32 $fiber->resume();
35 var_dump($fiber->isStarted());
36 var_dump($fiber->isRunning());
37 var_dump($fiber->isSuspended());
38 var_dump($fiber->isTerminated());