Muokkaa

Jaa


ConfiguredCancelableAsyncEnumerable<T>.ConfigureAwait(Boolean) Method

Definition

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

public:
 System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait(bool continueOnCapturedContext);
public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<T> ConfigureAwait (bool continueOnCapturedContext);
member this.ConfigureAwait : bool -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>
Public Function ConfigureAwait (continueOnCapturedContext As Boolean) As ConfiguredCancelableAsyncEnumerable(Of T)

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