php8.5
Home/ Manual/ predefined / fiber/ Fiber::getReturn

Fiber::getReturn

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Gets the value returned by the Fiber

Description

Fiber::getReturn(): mixed

Parameters Parameters

Return Values

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.

Source: language/predefined/fiber/getreturn.xml · from the official PHP manual (php/doc-en)