CarryingFiber.call

Hijacks the invocation of the Fiber and injects the string name of the calling function into the caller member before calling the Fiber's own .call().

Overload that takes a T payload to assign to its own internal this.payload.

  1. auto call(string caller)
  2. auto call(T payload, string caller)
    class CarryingFiber(T)
    call
    (,
    const string caller = __FUNCTION__
    )

Parameters

payload T

Payload to assign to .payload.

caller string

String name of the function calling this CarryingFiber (via .call()).

Return Value

Type: auto

A Throwable if the underlying Fiber threw one when called; null otherwise.