ConfiguredCancelableAsyncEnumerable<T>.ConfigureAwait(Boolean) Method

Definition

Configures how awaits on the tasks returned from an async iteration will be performed.

C#
public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext);

Parameters

continueOnCapturedContext
Boolean

Whether to capture and marshal back to the current context.

Returns

The configured enumerable.

Remarks

This will replace any previous value set by ConfigureAwait(Boolean) for this iteration.

Applies to

Proizvod Verzije
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1