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 [core.thread.fiber.Fiber.getThis()|Fiber.getThis()].

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

Parameters

plugin IRCPlugin

The current IRCPlugin.

duration Duration

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

yield bool

Whether or not to immediately yield the fiber.

caller string

String name of calling function.

See Also