Fiber::throwResumes execution of the fiber with an exception Description
public mixed Fiber::throw(Throwable
$exception)Resumes the fiber by throwing the given exception from the current Fiber::suspend call. If the fiber is not suspended when this method is called, a FiberError will be thrown. Parameters
Return Values
The value provided to the next call to Fiber::suspend or ExamplesThe above example will output something similar to: Message of an exception thrown at the current interrupt point |