<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.3.0" />

ReactiveUI.Primitives.Extensions.FirstAsTaskHelper

public static class 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<[Nullable(2)] T>(IObservable<T> source); } }