delay

Queues a void delegate() delegate to be called at a point duration later, by appending it to the plugin's IRCPluginState.scheduledDelegates.

Updates the IRCPluginState.nextScheduledFibers

timestamp so that the main loop knows when to next process the array of ScheduledDelegates.

  1. void delay(IRCPlugin plugin, Fiber fiber, Duration duration, string caller)
  2. void delay(IRCPlugin plugin, Duration duration, bool yield, string caller)
  3. void delay(IRCPlugin plugin, void delegate() dg, Duration duration, string caller)
    void
    delay
    (,
    void delegate
    ()
    dg
    ,
    const Duration duration
    ,
    const string caller = __FUNCTION__
    )

Parameters

plugin IRCPlugin

The current IRCPlugin.

dg void delegate
()

Delegate to enqueue to be executed at a later point in time.

duration Duration

Amount of time to delay the fiber.

caller string

String name of calling function.

See Also