CarryingFiber.this

Constructor function taking a T payload to assign to its own internal this.payload, as well as a function/delegate pointer to call when invoking this fiber (via .call()).

  1. this(FnOrDg fnOrDg, Args args, string creator)
  2. this(FnOrDg fnOrDg, T payload, Args args, string creator)
    class CarryingFiber(T)
    this
    (
    FnOrDg
    Args...
    )
    (
    FnOrDg fnOrDg
    ,,
    Args args
    ,
    const string creator = __FUNCTION__
    )
    if (
    isSomeFunction!FnOrDg &&
    (
    !Args.length ||
    allSatisfy!(isNumeric, Args)
    )
    )

Parameters

fnOrDg FnOrDg

Function/delegate pointer to call when invoking this CarryingFiber.

payload T

Payload to assign to .payload.

args Args

Arguments to pass to the Fiber super constructor. If empty, the default arguments are used.

creator string

String name of the creating function of this CarryingFiber.