await

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

Parameters

plugin IRCPlugin

The current IRCPlugin.

fiber Fiber

Fiber to enqueue to be executed when the next IRCEvent of type type comes along.

type IRCEvent.Type

The kind of IRCEvent that should trigger the passed awaiting fiber.

See Also