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.

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.

See Also

Meta