Fiber::getCurrent

Gets the currently executing Fiber instance

Description

public static Fibernull Fiber::getCurrent()

Parameters

This function has no parameters.

Return Values

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