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

ReactiveUI.Primitives.Extensions.FirstAsTaskHelper

public static class FirstAsTaskHelper
Bridges the first value of an observable to a Task<T>, faulting on source error and on completion without a value.
public static Task<T> FirstAsTask<T>(IObservable<T> source)

Subscribes to source and settles the returned task from its first notification, disposing the subscription at that point.