Class ScheduledDisposable
Represents a disposable resource whose disposal invocation will be scheduled on the specified IScheduler.
Inherited Members
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.Core.dll
Syntax
public sealed class ScheduledDisposable : ICancelable, IDisposable
Constructors
| Improve this Doc View SourceScheduledDisposable(IScheduler, IDisposable)
Initializes a new instance of the ScheduledDisposable class that uses an IScheduler on which to dispose the disposable.
Declaration
public ScheduledDisposable(IScheduler scheduler, IDisposable disposable)
Parameters
Type | Name | Description |
---|---|---|
IScheduler | scheduler | Scheduler where the disposable resource will be disposed on. |
IDisposable | disposable | Disposable resource to dispose on the given scheduler. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Properties
| Improve this Doc View SourceDisposable
Gets the underlying disposable. After disposal, the result is undefined.
Declaration
public IDisposable Disposable { get; }
Property Value
Type | Description |
---|---|
IDisposable |
IsDisposed
Gets a value that indicates whether the object is disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Scheduler
Gets the scheduler where the disposable resource will be disposed on.
Declaration
public IScheduler Scheduler { get; }
Property Value
Type | Description |
---|---|
IScheduler |
Methods
| Improve this Doc View SourceDispose()
Disposes the wrapped disposable on the provided scheduler.
Declaration
public void Dispose()