await

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

Parameters

plugin IRCPlugin

The current IRCPlugin.

fiber Fiber

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

types IRCEvent.Type[]

The kinds of IRCEvent that should trigger the passed awaiting fiber, in an array with elements of type IRCEvent.Type.

See Also