php / 8.1.5 / fiber.construct.html /

Fiber::__construct

(PHP 8 >= 8.1.0)

Fiber::__constructCreates a new Fiber instance

Description

public 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.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/fiber.construct.php