Module crit.observable

Observables.

Functions

disposer () Unsubscribe from multiple subscriptions in one go.


Functions

disposer ()
Unsubscribe from multiple subscriptions in one go. Creates collect and dispose functions. First, call collect(f) on all unsubscribe functions that you want to add to the disposer. Then, when you want to unsubscribe, call dispose() and all the collected functions will be called.

Returns:

  1. function (unsub: function) collect function. Collects unsub functions.
  2. function () dispose function. Calls all collected function.
generated by LDoc 1.4.6 Last updated 2022-05-04 10:01:11