Module crit.observable
Observables.
Functions
disposer () | Unsubscribe from multiple subscriptions in one go. |
Functions
- disposer ()
-
Unsubscribe from multiple subscriptions in one go.
Creates
collect
anddispose
functions. First, callcollect(f)
on all unsubscribe functions that you want to add to the disposer. Then, when you want to unsubscribe, calldispose()
and all the collected functions will be called.Returns:
-
function (unsub: function)
collect
function. Collectsunsub
functions. -
function ()
dispose
function. Calls allcollect
ed function.
-
function (unsub: function)