CancelSubscription Namespace
Package: @esfx/cancelable
Functions
create(unsubscribe)
Creates a CancelSubscription
object for an unsubscribe
callback.
Declaration
function create(unsubscribe: () => void): CancelSubscription;
Parameters
- unsubscribe
- () => void
The callback to execute when the unsubscribe()
method is called.