defer

Instantiates a DeferredActionImpl in the guise of a DeferredAction with the implicit type T as payload and appends it to the passed IRCPlugin's deferredActions array.

Overload that takes a CarryingFiber.

  1. void defer(IRCPlugin plugin, CarryingFiber!T fiber, string context, string subcontext, string creator)
    pure @safe nothrow
    void
    defer
    (
    T
    )
    (,,
    const string context = string.init
    ,
    const string subcontext = string.init
    ,
    const string creator = __FUNCTION__
    )
  2. void defer(IRCPlugin plugin, void delegate() dg, string context, string subcontext, string creator)

Parameters

T

Type to instantiate DeferredActionImpl with.

plugin IRCPlugin

IRCPlugin whose deferredActions array the action will be appended to.

fiber CarryingFiber!T

CarryingFiber to embed into the action.

context string

String context of the action.

subcontext string

String secondary context of the action.

creator string

Name of the function that created this action.