Skip to content

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

NameTypeDescription
scheduler[IScheduler](#Scheduler where the disposable resource will be disposed on.
disposableIDisposableDisposable resource to dispose on the given scheduler.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler or disposable is null.