Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 9 of 9) sorted by relevance

/ext-fiber/examples/
H A D002-read-write.php31 $callback = $this->streamCallbacks[$id];
33 $callback($resource);
36 public function defer(callable $callback): void argument
39 $this->deferCallbacks[$id] = $callback;
42 public function read($resource, callable $callback): void argument
46 $this->streamCallbacks[$id] = $callback;
/ext-fiber/stubs/
H A DFiber.php6 * @param callable $callback Function to invoke when starting the fiber.
8 public function __construct(callable $callback) {} argument
/ext-fiber/tests/
H A Dgc-cycle-callback.phpt2 GC can cleanup cycle when callback references fiber
H A Dbacktrace-object.phpt2 Backtrace in with object as fiber callback
H A Dstart-arguments.phpt2 Arguments to fiber callback
/ext-fiber/
H A Dfiber.stub.php8 public function __construct(callable $callback) {} argument
H A DREADME.md34 * @param callable $callback Function to invoke when starting the fiber.
36 public function __construct(callable $callback) {}
97 …* @return mixed Return value of the fiber callback. NULL is returned if the fiber does not have a …
124 A `Fiber` object is created using `new Fiber(callable $callback)` with any callable. The callable n…
135 … to store a reference to itself elsewhere, such as within an event loop callback or an array of aw…
H A Dfiber_arginfo.h5 ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0)
/ext-fiber/src/
H A Dfiber.c86 zend_observer_fiber_switch_handler callback; in zend_observer_fiber_switch_notify() local
89 callback = *(zend_observer_fiber_switch_handler *) element->data; in zend_observer_fiber_switch_notify()
90 callback(from, to); in zend_observer_fiber_switch_notify()

Completed in 12 milliseconds