Struct Event
Abstraction over a D delegate
, modelling the C# event paradigm.
struct Event(Args)
;
Properties
Name | Type | Description |
---|---|---|
hasHandlers [get]
|
bool | Whether or not this event has any assigned handlers. |
Methods
Name | Description |
---|---|
opCall
(args)
|
Invoke all of this Event s assigned handlers given any event arguments.
|
opOpAssign
(handler)
|
Add or remove an event handler via compound assignment (~= , += , -= ).
|