Fiber.inFiber

bool inFiber() nothrow @nogc @trusted

Check if code is currently executing inside a fiber context.

Returns

true if called from within a fiber.