array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'fiber.getreturn.php', 1 => 'Fiber::getReturn', ), 'up' => array ( 0 => 'class.fiber.php', 1 => 'Fiber', ), 'prev' => array ( 0 => 'fiber.throw.php', 1 => 'Fiber::throw', ), 'next' => array ( 0 => 'fiber.isstarted.php', 1 => 'Fiber::isStarted', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/fiber/getreturn.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 8 >= 8.1.0)
Fiber::getReturn — Gets the value returned by the Fiber
This function has no parameters.
Returns the value returned by the callable provided to Fiber::__construct(). If the fiber has not returned a value, either because it has not been started, has not terminated, or threw an exception, a FiberError will be thrown.