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 void delegate() delegate, which DeferredActionImpl's constructor will create a CarryingFiber from.

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

Parameters

T

Type to instantiate DeferredActionImpl with.

plugin IRCPlugin

IRCPlugin whose deferredActions array the action will be appended to.

dg void delegate
()

Delegate to create a CarryingFiber from.

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.