<PackageReference Include="System.Reactive" Version="6.0.0-preview.13" />

TaskObservationOptions

public sealed class TaskObservationOptions
Controls how completion or failure is handled when a Task or Task<T> is wrapped as an IObservable<T> and observed by an IObserver<T>.
public bool IgnoreExceptionsAfterUnsubscribe { get; }

Gets a flag controlling handling of exceptions that occur after cancellation has been initiated by unsubscribing from the observable representing the task's progress.

public IScheduler Scheduler { get; }

Gets the optional scheduler to use when delivering notifications of the tasks's progress.

public TaskObservationOptions(IScheduler scheduler, bool ignoreExceptionsAfterUnsubscribe)