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)
  2. void delay(IRCPlugin plugin, Duration duration, Flag!"yield" yield)
  3. void delay(IRCPlugin plugin, void delegate() dg, Duration duration)
    void
    delay
    (,
    void delegate
    ()
    dg
    ,
    const Duration duration
    )

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.

See Also

Meta