Creates a race condition free disposable resource, such as the execution of an Observable
associated with a key
that will be unsubscribed before subscribing again if the key
and args
are used again or the subscription is closed.
The unique key associated to the Subscription.
A function that returns a disposable resource, such as the execution of an Observable.
Optional
Rest
...args: unknown[]Arguments required to create the disposable resource.
Gets a disposable resource, such as the execution of an Observable, associated with the key
or undefined if the key does not exist.
A disposable resource, such as the execution of an Observable, or undefined if the key does not exist.
The unique key associated to the Subscription.
Generated using TypeDoc
Avoid race conditions when store disposable resources, such as the execution of an Observable.