delay

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

  1. void delay(IRCPlugin plugin, Fiber fiber, Duration duration)
  2. void delay(IRCPlugin plugin, Duration duration, Flag!"yield" yield)
    void
    delay
    (,
    const Duration duration
    ,
    const Flag!"yield" yield
    )
  3. void delay(IRCPlugin plugin, void delegate() dg, Duration duration)

Parameters

plugin IRCPlugin

The current IRCPlugin.

duration Duration

Amount of time to delay the implicit fiber in the current context.

yield Flag!"yield"

Whether or not to immediately yield the Fiber.

See Also

Meta