ReactiveUI.Primitives.Extensions.FirstAsTaskHelper
Subscribes once and completes the returned Task<T> with the first emitted value;
faults the task on source error or on empty completion. Combines the TaskCompletionSource<T>
and the IObserver into a single allocation per call.
namespace ReactiveUI.Primitives.Extensions
{
public static class FirstAsTaskHelper
{
public static Task<T> FirstAsTask<[System.Runtime.CompilerServices.Nullable(2)] T>(IObservable<T> source);
}
}