Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.
More...
|
| RefCountDisposable (IDisposable disposable) |
| Initializes a new instance of the T:System.Reactive.Disposables.RefCountDisposable class with the specified disposable. More...
|
|
IDisposable | GetDisposable () |
| Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable. More...
|
|
void | Dispose () |
| Disposes the underlying disposable only when all dependent disposables have been disposed.
|
|
Represents a disposable resource that only disposes its underlying disposable resource when all dependent disposable objects have been disposed.
◆ RefCountDisposable()
UniRx.RefCountDisposable.RefCountDisposable |
( |
IDisposable |
disposable | ) |
|
Initializes a new instance of the T:System.Reactive.Disposables.RefCountDisposable class with the specified disposable.
- Parameters
-
disposable | Underlying disposable. |
- Exceptions
-
ArgumentNullException | disposable is null. |
◆ GetDisposable()
IDisposable UniRx.RefCountDisposable.GetDisposable |
( |
| ) |
|
Returns a dependent disposable that when disposed decreases the refcount on the underlying disposable.
- Returns
- A dependent disposable contributing to the reference count that manages the underlying disposable's lifetime.
◆ IsDisposed
bool UniRx.RefCountDisposable.IsDisposed |
|
get |
Gets a value that indicates whether the object is disposed.
Implements UniRx.ICancelable.
The documentation for this class was generated from the following file: