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

Fiber::__construct

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Creates a new Fiber instance

Description

Fiber::__construct(callable $callback)

Parameters

callback

The callable to invoke when starting the fiber. Arguments given to Fiber::start will be provided as arguments to the given callable.

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