Home
last modified time | relevance | path

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

12345

/PHP-8.1/Zend/
H A Dzend_fibers_arginfo.h41 ZEND_METHOD(Fiber, __construct);
42 ZEND_METHOD(Fiber, start);
43 ZEND_METHOD(Fiber, resume);
44 ZEND_METHOD(Fiber, throw);
45 ZEND_METHOD(Fiber, isStarted);
46 ZEND_METHOD(Fiber, isSuspended);
47 ZEND_METHOD(Fiber, isRunning);
48 ZEND_METHOD(Fiber, isTerminated);
49 ZEND_METHOD(Fiber, getReturn);
50 ZEND_METHOD(Fiber, getCurrent);
[all …]
/PHP-8.1/Zend/tests/fibers/
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 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 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 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 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 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')
H A Dgh9735-002.phpt2 Bug GH-9735 002 (Fiber stack variables do not participate in cycle collector)
13 Fiber::suspend();
16 $fiber = new Fiber(function () {
19 $fiber = Fiber::getCurrent();
H A Dgh9735-003.phpt2 Bug GH-9735 003 (Fiber stack variables do not participate in cycle collector)
13 $fiber = Fiber::getCurrent();
14 Fiber::suspend();
17 $fiber = new Fiber(function () {
H A Dgh9735-004.phpt2 Bug GH-9735 004 (Fiber stack variables do not participate in cycle collector)
13 $fiber = Fiber::getCurrent();
14 Fiber::suspend();
17 $fiber = new Fiber(function () {
H A Dgh9735-005.phpt2 Bug GH-9735 005 (Fiber stack variables do not participate in cycle collector)
13 Fiber::suspend();
16 $fiber = new Fiber(function () {
19 $fiber = Fiber::getCurrent();
H A Dgh9735-008.phpt2 Bug GH-9735 008 (Fiber stack variables do not participate in cycle collector)
16 Fiber::suspend();
19 $fiber = new Fiber(function () {
22 f(Fiber::getCurrent(), g());
H A Dgh9735-009.phpt2 Bug GH-9735 009 (Fiber stack variables do not participate in cycle collector)
16 g(Fiber::suspend());
19 $fiber = new Fiber(function () {
22 f(Fiber::getCurrent(), g());
H A Dfatal-error-in-nested-fiber.phpt6 $fiber = new Fiber(function (): void {
7 $fiber = new Fiber(function (): void {
8 \Fiber::suspend(2);
14 \Fiber::suspend(1);
H A Dget-return-from-unstarted-fiber.phpt2 Fiber::getReturn() from unstarted fiber
6 $fiber = new Fiber(fn() => Fiber::suspend(1));
14 #0 %sget-return-from-unstarted-fiber.php(%d): Fiber->getReturn()
H A Dgh9735-006.phpt2 Bug GH-9735 006 (Fiber stack variables do not participate in cycle collector)
16 Fiber::suspend();
19 $fiber = new Fiber(function () {
22 $fiber = Fiber::getCurrent();
H A Dgh9735-007.phpt2 Bug GH-9735 007 (Fiber stack variables do not participate in cycle collector)
13 $fiber = Fiber::getCurrent();
18 Fiber::suspend();
21 $fiber = new Fiber(function () {
H A Dfatal-error-with-multiple-fibers.phpt6 $fiber1 = new Fiber(function (): void {
8 \Fiber::suspend(1);
14 $fiber2 = new Fiber(function (): void {
15 \Fiber::suspend(2);
H A Dget-return-in-unfinished-fiber.phpt2 Fiber::getReturn() in unfinished fiber
6 $fiber = new Fiber(fn() => Fiber::suspend(1));
18 #0 %sget-return-in-unfinished-fiber.php(%d): Fiber->getReturn()
/PHP-8.1/ext/zend_test/tests/
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();
/PHP-8.1/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 17 milliseconds

12345