Fiber::__construct
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.1.0)
Creates a new Fiber instance
Description
Fiber::__construct(callable $callback)
Parameters
callbackThe
callableto invoke when starting the fiber. Arguments given toFiber::startwill be provided as arguments to the given callable.