SubscribableMixin.subscribe

Subscribe a delegate to a particular event emmited by object

mixintemplate SubscribableMixin(EventType, Callback)
@safe
typeof(this)
subscribe
(
EventType type
,
Callback subscriber
)

Parameters

type EventType

type of event emmited by object

subscriber Callback

the callback to be called on event emmited

Return Value

Type: typeof(this)

typeof(this)

Meta