Home
last modified time | relevance | path

Searched refs:Fiber (Results 1 – 25 of 144) sorted by relevance

123456

/php-src/Zend/
H A Dzend_fibers_arginfo.h40 ZEND_METHOD(Fiber, __construct);
41 ZEND_METHOD(Fiber, start);
42 ZEND_METHOD(Fiber, resume);
43 ZEND_METHOD(Fiber, throw);
44 ZEND_METHOD(Fiber, isStarted);
45 ZEND_METHOD(Fiber, isSuspended);
46 ZEND_METHOD(Fiber, isRunning);
47 ZEND_METHOD(Fiber, isTerminated);
48 ZEND_METHOD(Fiber, getReturn);
49 ZEND_METHOD(Fiber, getCurrent);
[all …]
/php-src/ext/zend_test/tests/
H A Dobserver_fiber_functions_03.phpt22 Fiber::suspend();
29 Fiber::suspend();
41 <Fiber::__construct>
42 </Fiber::__construct>
44 <Fiber::start>
55 <Fiber::suspend>
58 </Fiber::start>
61 <Fiber::start>
73 </Fiber::start>
75 <Fiber::resume>
[all …]
H A Dobserver_fiber_functions_01.phpt17 Fiber::suspend();
28 <!-- init Fiber::__construct() -->
29 <Fiber::__construct>
30 </Fiber::__construct>
31 <!-- init Fiber::start() -->
32 <Fiber::start>
43 <Fiber::suspend>
46 </Fiber::start>
48 <Fiber::resume>
51 </Fiber::suspend>
[all …]
H A Dobserver_fiber_functions_02.phpt15 $fiber = new Fiber(function (): void {
17 Fiber::suspend();
27 <!-- init Fiber::__construct() -->
28 <Fiber::__construct>
29 </Fiber::__construct>
30 <!-- init Fiber::start() -->
31 <Fiber::start>
41 <!-- init Fiber::suspend() -->
42 <Fiber::suspend>
45 </Fiber::start>
[all …]
H A Dfiber_test_06.phpt2 Fiber interaction with custom fiber implementation 6
8 $fiber = new Fiber(function (): void {
10 Fiber::suspend(20);
11 echo "unreachable\n"; // Fiber is not resumed.
16 $fiber = new Fiber(function (): void {
17 var_dump(Fiber::suspend(1)); // string(1) "1"
18 var_dump(Fiber::suspend(2)); // string(1) "2"
H A Dobserver_fiber_03.phpt12 $fiber = new Fiber(function (): void {
13 Fiber::suspend();
16 $fiber = new Fiber(function (): void {
17 Fiber::suspend();
19 Fiber::suspend();
25 Fiber::suspend();
30 Fiber::suspend();
44 <!-- init Fiber::__construct() -->
45 <!-- init Fiber::start() -->
49 <!-- init Fiber::suspend() -->
[all …]
H A Dobserver_fiber_04.phpt12 $fiber = new Fiber(function (): void {
13 Fiber::suspend();
15 $fiber = new Fiber(function (): void {
16 Fiber::suspend();
21 Fiber::suspend();
31 <!-- init Fiber::__construct() -->
32 <!-- init Fiber::start() -->
36 <!-- init Fiber::suspend() -->
39 <!-- init Fiber::resume() -->
H A Dobserver_fiber_05.phpt12 $fiber = new Fiber(function (): void {
13 Fiber::suspend();
15 $fiber = new Fiber(function (): void {
16 Fiber::suspend();
21 Fiber::suspend();
30 <!-- init Fiber::__construct() -->
31 <!-- init Fiber::start() -->
35 <!-- init Fiber::suspend() -->
38 <!-- init Fiber::resume() -->
H A Dobserver_fiber_01.phpt14 $fiber = new Fiber(function (): void {
15 Fiber::suspend();
24 <!-- init Fiber::__construct() -->
25 <!-- init Fiber::start() -->
30 <!-- init Fiber::suspend() -->
33 <!-- init Fiber::resume() -->
H A Dobserver_fiber_06.phpt12 $fiber = new Fiber(function (): void {
13 Fiber::suspend();
27 <!-- init Fiber::__construct() -->
28 <!-- init Fiber::start() -->
32 <!-- init Fiber::suspend() -->
36 <!-- init Fiber::throw() -->
H A Dobserver_fiber_02.phpt12 $fiber = new Fiber(function (): void {
13 Fiber::suspend();
21 <!-- init Fiber::__construct() -->
22 <!-- init Fiber::start() -->
26 <!-- init Fiber::suspend() -->
/php-src/Zend/tests/fibers/
H A Dsignal-dispatch.phpt10 if (Fiber::getCurrent() !== null) {
11 Fiber::suspend();
15 $fiber = new Fiber(function (): void {
16 echo "Fiber start\n";
23 Fiber::suspend($e);
26 echo "Fiber end\n";
37 Fiber start
40 #0 %ssignal-dispatch.php(%d): Fiber::suspend()
44 #4 %ssignal-dispatch.php(%d): Fiber->start()
46 Fiber end
H A Dfiber-get-current.phpt2 Fiber::getCurrent()
6 var_dump(Fiber::getCurrent());
8 $fiber = new Fiber(function (): void {
9 var_dump(Fiber::getCurrent());
17 object(Fiber)#%d (0) {
H A Dfiber-status.phpt2 Fiber status methods
6 $fiber = new Fiber(function (): void {
7 $fiber = Fiber::getCurrent();
8 echo "\nWithin Fiber:\n";
14 $nested = new Fiber(function () use ($fiber): void {
15 echo "\nWithin Nested Fiber:\n";
20 Fiber::suspend();
25 Fiber::suspend();
58 Within Fiber:
64 Within Nested Fiber:
H A Dsignal-async.phpt12 if (Fiber::getCurrent() !== null) {
13 Fiber::suspend();
17 $fiber = new Fiber(function (): void {
18 echo "Fiber start\n";
21 echo "Fiber end\n";
28 Fiber start
32 #0 %ssignal-async.php(%d): Fiber::suspend()
36 #4 %ssignal-async.php(%d): Fiber->start()
H A Dresume-previous-fiber.phpt6 $fiber = new Fiber(function (): void {
7 $fiber1 = Fiber::getCurrent();
9 $fiber2 = new Fiber(function () use ($fiber1): void {
22 #0 %sresume-previous-fiber.php(%d): Fiber->resume()
24 #2 %sresume-previous-fiber.php(%d): Fiber->start()
26 #4 %sresume-previous-fiber.php(%d): Fiber->start()
H A Ddestructors_007.phpt18 $f2 = Fiber::getCurrent();
19 Fiber::suspend(new stdClass);
22 $f3 = new Fiber(function () use ($id) {
23 printf("%d: Fiber\n", $id);
36 $f = new Fiber(function () {
49 1: Fiber
H A Dfiber-in-shutdown-function.phpt2 Fiber in shutdown function
7 $fiber = new Fiber(function (): int {
8 Fiber::suspend(1);
9 Fiber::suspend(2);
H A Dthrow-in-multiple-destroyed-fibers-after-shutdown.phpt6 $fiber = new Fiber(function (): void {
7 $fiber1 = new Fiber(function (): void {
9 Fiber::suspend();
17 $fiber2 = new Fiber(function (): void {
19 Fiber::suspend();
27 Fiber::suspend();
H A Dticks.phpt9 if (Fiber::getCurrent() !== null) {
10 Fiber::suspend();
14 $fiber = new Fiber(function (): void {
28 #0 %sticks.php(%d): Fiber::suspend()
31 #3 %sticks.php(%d): Fiber->start()
H A Dgh9735-001.phpt2 Bug GH-9735 001 (Fiber stack variables do not participate in cycle collector)
12 $fiber = new Fiber(function () {
15 $fiber = Fiber::getCurrent();
17 Fiber::suspend();
H A Dfailing-nested-fiber.phpt6 $fiber = new Fiber(function (): void {
7 $fiber = new Fiber(function (int $x, int $y): void {
8 Fiber::suspend($x + $y);
26 #1 %sfailing-nested-fiber.php(%d): Fiber->resume(3)
28 #3 %sfailing-nested-fiber.php(%d): Fiber->start()
H A Dstart-arguments.phpt6 $fiber = new Fiber(function (int $x): int {
7 return $x + Fiber::suspend($x);
14 $fiber = new Fiber(function (int $x): int {
15 return $x + Fiber::suspend($x);
27 #1 %sstart-arguments.php(%d): Fiber->start('test')
/php-src/ext/reflection/tests/
H A DReflectionFiber_bug_gh11121_1.phpt6 Fiber::suspend();
10 (new Fiber(function() {
16 $f = new Fiber(function() { f(); max(...[1,2,3,4,5,6,7,8,9,10,11,12]); g(); });
32 string(5) "Fiber"
34 object(Fiber)#3 (0) {
H A DReflectionFiber_bug_gh11121_2.phpt7 Fiber::suspend();
11 (new Fiber(function() {
17 $f = new Fiber(function() { f(); g(); });
33 string(5) "Fiber"
35 object(Fiber)#3 (0) {

Completed in 26 milliseconds

123456