Fiber::getCurrent

(PHP 8 >= 8.1.0)

Fiber::getCurrentGets the currently executing Fiber instance

Description

public static Fiber::getCurrent(): ?Fiber

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Returns the currently executing Fiber instance or null if this method is called from outside a fiber.