php8.5
Home/ Manual/ language / predefined/ The Fiber class

The Fiber class

Fibers represent full-stack, interruptible functions. Fibers may be suspended from anywhere in the call-stack, pausing execution within the fiber until the fiber is resumed at a later time.

Intro

Fibers represent full-stack, interruptible functions. Fibers may be suspended from anywhere in the call-stack, pausing execution within the fiber until the fiber is resumed at a later time.

Class synopsis

final Fiber { }

See Also

Fibers overview

Construct Start Resume Throw Getreturn Isstarted Issuspended Isrunning Isterminated Suspend Getcurrent

In this section

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