Type to embed into the class as the type of CarryingFiber.payload.
Function/delegate pointer to call when invoking the resulting CarryingFiber.
Payload to assign to the payload member of the resulting CarryingFiber.
Arguments to pass to the Fiber super constructor. If empty, its default arguments are used.
String name of the calling function creating the resulting CarryingFiber.
A CarryingFiber with an automatically-inferred template parameter T, whose payload is set to the passed payload.
import kameloso.constants : BufferSize; static struct Payload { string s; int i; } void dg() {} Payload payload; payload.s = "Hello"; payload.i = 42; auto fiber = carryingFiber(&dg, payload, BufferSize.fiberStack); assert(fiber.payload == payload); fiber.call(); assert(fiber.called == 1);
Convenience function creating a new CarryingFiber while inferring the payload type T from the passed payload argument.