TaskAsyncEnumerableExtensions
Provides a set of static methods for configuring Task-related behaviors on asynchronous enumerables and disposables.
public static ConfiguredAsyncDisposable ConfigureAwait(this IAsyncDisposable source, bool continueOnCapturedContext)
Configures how awaits on the tasks returned from an async disposable will be performed.
public static ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait<T>(this IAsyncEnumerable<T> source, bool continueOnCapturedContext)
Configures how awaits on the tasks returned from an async iteration will be performed.
public static ConfiguredCancelableAsyncEnumerable<T> WithCancellation<T>(this IAsyncEnumerable<T> source, CancellationToken cancellationToken)
Sets the CancellationToken to be passed to GetAsyncEnumerator when iterating.