Lines Matching refs:fiber
6 $fiber = new Fiber(function (): void {
7 $fiber = Fiber::getCurrent();
9 var_dump($fiber->isStarted());
10 var_dump($fiber->isRunning());
11 var_dump($fiber->isSuspended());
12 var_dump($fiber->isTerminated());
14 $nested = new Fiber(function () use ($fiber): void {
16 var_dump($fiber->isStarted());
17 var_dump($fiber->isRunning());
18 var_dump($fiber->isSuspended());
19 var_dump($fiber->isTerminated());
29 var_dump($fiber->isStarted());
30 var_dump($fiber->isRunning());
31 var_dump($fiber->isSuspended());
32 var_dump($fiber->isTerminated());
34 $fiber->start();
37 var_dump($fiber->isStarted());
38 var_dump($fiber->isRunning());
39 var_dump($fiber->isSuspended());
40 var_dump($fiber->isTerminated());
42 $fiber->resume();
45 var_dump($fiber->isStarted());
46 var_dump($fiber->isRunning());
47 var_dump($fiber->isSuspended());
48 var_dump($fiber->isTerminated());