Interface: EventSink<T>
An event that can be subscribed to. You can use the token, returned from the subscribe method, to clean up handlers.
Type parameters
Type parameter |
---|
T |
Methods
subscribe()
subscribe(
handler
):IEventToken
Parameters
Parameter | Type | Description |
---|---|---|
handler | EventHandler <T > | Handler function to subscribe with. |
Returns
An event handler subscription token that can be used to unsubscribe and clean-up handlers.
Remarks
Subscribes an event handler to a particular subscription.