<PackageReference Include="ReactiveUI.Primitives" Version="10.2.0" />

ReactiveUI.Primitives.Advanced.TakeUntilSignal<T, TOther>

public sealed class TakeUntilSignal<T, TOther> : IObservable<T>
Dedicated signal for TakeUntil, holding both the source and the stop arm.
public TakeUntilSignal(IObservable<T> source, IObservable<TOther> other)

Initializes a new instance of the TakeUntilSignal<T, U> class.

public static IObservable<T> Create(IObservable<T> source, IObservable<TOther> other)

Creates a TakeUntil sequence with empty/never short-circuiting.

public static IObservable<T> CreateWithCancellation(IObservable<T> source, CancellationToken cancellationToken)

Forwards source values until cancellationToken is canceled.

public IDisposable Subscribe(IObserver<T> observer)