跳转到主要内容

start

Fiber::start

Start execution of the fiber

ENTITY

public

mixed

Fiber::start

mixed

args

A variadic list of arguments to provide to the callable used when constructing the fiber.

If the fiber has already been started when this method is called, a FiberError will be thrown.

ENTITY

args
The arguments to use when invoking the callable given to the fiber constructor.

ENTITY

The value provided to the first call to Fiber::suspend or ENTITY if the fiber returns. If the fiber throws an exception before suspending, it will be thrown from the call to this method.