Struct Event

Abstraction over a D delegate, modelling the C# event paradigm.

struct Event(Args) ;

Properties

NameTypeDescription
hasHandlers[get] boolWhether or not this event has any assigned handlers.

Methods

NameDescription
opCall (args) Invoke all of this Events assigned handlers given any event arguments.
opOpAssign (handler) Add or remove an event handler via compound assignment (~=, +=, -=).