Function Subscribable.subscribe

Subscriber a delegate to a particular event emmited by object

Subscribable subscribe (
  T type,
  void delegate() subscriber
);

Parameters

NameDescription
type type of event emmited by object
subscriber the callback to be called on event emmited

Returns

typeof(this)