Rx.RefCountDisposable
Represents a disposable resource that only disposes its underlying disposable resource when all getDisposable
dependent disposable objects have been disposed.
Usage ##
The follow example shows the basic usage of an Rx.RefCountDisposable
.
Location
rx.js
RefCountDisposable Constructor
##
RefCountDisposable Constructor
##RefCountDisposable Instance Methods
##
RefCountDisposable Instance Methods
##RefCountDisposable Instance Properties
##
RefCountDisposable Instance Properties
##RefCountDisposable Constructor ##
Rx.RefCountDisposable(disposable)
Rx.RefCountDisposable(disposable)
Initializes a new instance of the Rx.RefCountDisposable
class with the specified disposable
Arguments
disposable
(Disposable): Underlying disposable.
Example
Location
rx.js
RefCountDisposable Instance Methods ##
Rx.RefCountDisposable.prototype.dispose()
Rx.RefCountDisposable.prototype.dispose()
Disposes the underlying disposable only when all dependent disposables have been disposed.
Example
Location
rx.js
Rx.RefCountDisposable.prototype.getDisposable()
Rx.RefCountDisposable.prototype.getDisposable()
Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable.
Returns
(Disposable): A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime.
Example
Location
rx.js
RefCountDisposable Instance Properties ##
isDisposed
isDisposed
Gets a value that indicates whether the object is disposed.
Example
Location
rx.js
Last updated
Was this helpful?