array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'fiber.resume.php', 1 => 'Fiber::resume', 2 => 'Resumes execution of the fiber with a value', ), 'up' => array ( 0 => 'class.fiber.php', 1 => 'Fiber', ), 'prev' => array ( 0 => 'fiber.start.php', 1 => 'Fiber::start', ), 'next' => array ( 0 => 'fiber.throw.php', 1 => 'Fiber::throw', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/fiber/resume.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8 >= 8.1.0)
Fiber::resume — Resumes execution of the fiber with a value
Resumes the fiber using the given value as the result of the current Fiber::suspend() call.
If the fiber is not suspended when this method is called, a FiberError will be thrown.
valueThe value to resume the fiber. This value will be the return value of the current Fiber::suspend() call.
The value provided to the next call to Fiber::suspend() or null if the fiber returns.
If the fiber throws an exception before suspending, it will be thrown from the call to this method.