Fiber.getThis

Fiber getThis() @safe nothrow @nogc

Provides a reference to the calling fiber or null if no fiber is currently active.

Returns

The fiber object representing the calling fiber or null if no fiber

is currently active within this thread. The result of deleting this object is undefined.