System.Linq.Async by .NET Foundation and Contributors

<PackageReference Include="System.Linq.Async" Version="4.0.0-preview.1.build.745" />

 AsyncEnumerableExtensions

public static class AsyncEnumerableExtensions
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.