delay

Queues a Fiber to be called at a point duration later, by appending it to the plugin's IRCPluginState.scheduledFibers.

Updates the IRCPluginState.nextScheduledFibers

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

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

Parameters

plugin IRCPlugin

The current IRCPlugin.

fiber Fiber

Fiber 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