<PackageReference Include="ReactiveUI.Disposables" Version="8.0.0" />

ReactiveUI.Primitives.Disposables.CancellationDisposable

A disposable that cancels a CancellationTokenSource when disposed; the source itself is left undisposed.
public bool IsDisposed { get; }

Gets a value indicating whether this instance is disposed.

public CancellationToken Token { get; }

Gets the token that enters the cancelled state when this instance is disposed.

Initializes a new instance of the CancellationDisposable class.

Initializes a new instance of the CancellationDisposable class.

public void Dispose()

Cancels the source on the first call; repeated calls have no further effect.