Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Fiber::startFiber::throw>
^FiberLast updated: Mon, 26 Oct 2026

Fiber::resume

(PHP 8 >= 8.1.0)

Fiber::resume — Resumes execution of the fiber with a value

Description

public function Fiber::resume(mixed $value = null): mixed

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.

Parameters

value

The value to resume the fiber. This value will be the return value of the current Fiber::suspend() call.

Return Values

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.


<Fiber::startFiber::throw>
^FiberLast updated: Mon, 26 Oct 2026