kameloso.plugins.common.delayawait

The section of kameloso.plugins.common that deals with delaying executing of Fibers and delegates to a later point in time, and registering such to await a specific type of IRCEvent.

This was all in one plugins/common.d file that just grew too big.

Members

Functions

await
void await(IRCPlugin plugin, Fiber fiber, IRCEvent.Type type)

Queues a Fiber to be called whenever the next parsed and triggering IRCEvent matches the passed IRCEvent.Type type.

await
void await(IRCPlugin plugin, IRCEvent.Type type, Flag!"yield" yield)

Queues a Fiber to be called whenever the next parsed and triggering IRCEvent matches the passed IRCEvent.Type type. Overload that implicitly queues Fiber.getThis.

await
void await(IRCPlugin plugin, Fiber fiber, IRCEvent.Type[] types)

Queues a Fiber to be called whenever the next parsed and triggering IRCEvent matches any of the passed IRCEvent.Type types.

await
void await(IRCPlugin plugin, IRCEvent.Type[] types, Flag!"yield" yield)

Queues a Fiber to be called whenever the next parsed and triggering IRCEvent matches any of the passed IRCEvent.Type types. Overload that implicitly queues Fiber.getThis.

await
void await(IRCPlugin plugin, void delegate(IRCEvent) dg, IRCEvent.Type type)

Queues a void delegate(IRCEvent) delegate to be called whenever the next parsed and triggering const IRCEvent matches the passed IRCEvent.Type type.

await
void await(IRCPlugin plugin, void delegate(IRCEvent) dg, IRCEvent.Type[] types)

Queues a void delegate(IRCEvent) delegate to be called whenever the next parsed and triggering const IRCEvent matches the passed IRCEvent.Type types. Overload that takes an array of types.

delay
void delay(IRCPlugin plugin, Fiber fiber, Duration duration)

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

delay
void delay(IRCPlugin plugin, Duration duration, Flag!"yield" yield)

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.

delay
void delay(IRCPlugin plugin, void delegate() dg, Duration duration)

Queues a void delegate() delegate to be called at a point duration later, by appending it to the plugin's IRCPluginState.scheduledDelegates.

removeDelayedDelegate
void removeDelayedDelegate(IRCPlugin plugin, void delegate() dg)

Removes a void delegate() delegate from being called at any point later.

removeDelayedFiber
void removeDelayedFiber(IRCPlugin plugin, Fiber fiber)

Removes a Fiber from being called at any point later.

removeDelayedFiber
void removeDelayedFiber(IRCPlugin plugin)

Removes a Fiber from being called at any point later. Overload that implicitly removes Fiber.getThis.

unawait
void unawait(IRCPlugin plugin, Fiber fiber, IRCEvent.Type type)

Dequeues a Fiber from being called whenever the next parsed and triggering IRCEvent matches the passed IRCEvent.Type type.

unawait
void unawait(IRCPlugin plugin, IRCEvent.Type type)

Dequeues a Fiber from being called whenever the next parsed and triggering IRCEvent matches the passed IRCEvent.Type type. Overload that implicitly dequeues Fiber.getThis.

unawait
void unawait(IRCPlugin plugin, Fiber fiber, IRCEvent.Type[] types)

Dequeues a Fiber from being called whenever the next parsed and triggering IRCEvent matches any of the passed IRCEvent.Type types.

unawait
void unawait(IRCPlugin plugin, IRCEvent.Type[] types)

Dequeues a Fiber from being called whenever the next parsed and triggering IRCEvent matches any of the passed IRCEvent.Type types. Overload that implicitly dequeues Fiber.getThis.

unawait
void unawait(IRCPlugin plugin, void delegate(IRCEvent) dg, IRCEvent.Type type)

Dequeues a void delegate(IRCEvent) delegate from being called whenever the next parsed and triggering IRCEvent matches the passed IRCEvent.Type type.

unawait
void unawait(IRCPlugin plugin, void delegate(IRCEvent) dg, IRCEvent.Type[] types)

Dequeues a void delegate(IRCEvent) delegate from being called whenever the next parsed and triggering IRCEvent matches any of the passed IRCEvent.Type types. Overload that takes a array of types.

See Also

Meta