Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gaearon/disposables
/ functions
Functions
12 in github.com/gaearon/disposables
⨍
Functions
12
◇
Types & classes
6
↓ 18 callers
Method
dispose
()
src/Disposable.js:14
↓ 18 callers
Method
setDisposable
* Sets the underlying disposable. * @param {Disposable} value The new underlying disposable.
src/SerialDisposable.js:21
↓ 11 callers
Method
add
* Adds a disposable to the CompositeDisposable or disposes the disposable if the CompositeDisposable is disposed. * @param {Disposable} item Dispos
src/CompositeDisposable.js:26
↓ 10 callers
Method
remove
* Removes and disposes the first occurrence of a disposable from the CompositeDisposable. * @param {Disposable} item Disposable to remove. * @re
src/CompositeDisposable.js:39
↓ 8 callers
Function
isDisposable
(obj)
src/isDisposable.js:1
↓ 5 callers
Method
getDisposable
* Gets the underlying disposable. * @return The underlying disposable.
src/SerialDisposable.js:13
↓ 2 callers
Method
dispose
* Disposes the underlying disposable as well as all future replacements.
src/SerialDisposable.js:46
↓ 2 callers
Method
dispose
* Disposes all disposables in the group and removes them from the group.
src/CompositeDisposable.js:57
Method
constructor
(action)
src/Disposable.js:9
Method
constructor
()
src/SerialDisposable.js:4
Method
constructor
(...disposables)
src/CompositeDisposable.js:7
Function
noop
()
src/Disposable.js:1