event library

Represents an Event as some number of handlers (subscribers) that can be notified when a condition occurs.

See also EventArgs.

Classes

Event<T extends EventArgs>
Represents an Event as some number of handlers (subscribers) that can be notified when a condition occurs, by using the broadcast method.
EventArgs
An abstract representation of the (optional) arguments provided to handlers when an Event occurs.
Value<T>
Represents an EventArgs derived class with one (generic) value.
Values<T1, T2>
Represents an EventArgs derived class with two (generic) values.
WhenWhy
An EventArgs derived class that includes the date/time the Event was broadcast, and an optional description.

Typedefs

EventHandler<T extends EventArgs> = void Function(T? args)
Defines the function (callback) signature of an Event handler. It is a function that takes an argument of type EventArgs, or one derived from it.