ReactiveUI.Primitives.Advanced.TaskCountWitness<T>
Task-producing terminal sink that completes with the number of matching source values.
Gets the task completed by this sink.
Initializes a new instance of the TaskCountWitness<T> class.
Initializes a new instance of the TaskCountWitness<T> class.
Subscribes to source and completes with the observed value count.
Subscribes to source and completes with the observed value count.
Subscribes to source and completes with the matching value count.
public static Task<int> CountAsync(IObservable<T> source, Func<T, bool> predicate, CancellationToken cancellationToken)
Subscribes to source and completes with the matching value count.
Registers cancellation after construction.
Assigns the source subscription.