ScheduledDisposable(IScheduler, IDisposable) constructor¶
Defined in
Type: ScheduledDisposable
Namespace: System.Reactive.Disposables
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public ScheduledDisposable(IScheduler scheduler, IDisposable disposable)
Summary: Initializes a new instance of the ScheduledDisposable class that uses an IScheduler on which to dispose the disposable.
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [IScheduler](# | Scheduler where the disposable resource will be disposed on. |
disposable | IDisposable | Disposable resource to dispose on the given scheduler. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler or disposable is null. |