Fiber.current

CoreFiber current() nothrow @nogc @trusted

Get the currently executing fiber, if any.

Returns

The current CoreFiber instance, or null if not in a fiber.