Language

TaskAsyncEnumerableExtensions.ConfigureAwait Method

Definition

Overloads

Name Description
ConfigureAwait(IAsyncDisposable, Boolean)

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

ConfigureAwait(IAsyncEnumerable, Boolean)

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

ConfigureAwait(IAsyncDisposable, Boolean)

Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::ConfiguredAsyncDisposable ConfigureAwait(IAsyncDisposable ^ source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this IAsyncDisposable source, bool continueOnCapturedContext);
static member ConfigureAwait : IAsyncDisposable * bool -> System.Runtime.CompilerServices.ConfiguredAsyncDisposable

Public Function ConfigureAwait (source As IAsyncDisposable, continueOnCapturedContext As Boolean) As ConfiguredAsyncDisposable

Parameters

source
IAsyncDisposable

The source async disposable.

continueOnCapturedContext
Boolean

Whether to capture and marshal back to the current context.

Returns

The configured async disposable.

Applies to

ConfigureAwait(IAsyncEnumerable, Boolean)

Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs
Source:
TaskAsyncEnumerableExtensions.cs

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

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::CompilerServices::ConfiguredCancelableAsyncEnumerable ConfigureAwait(System::Collections::Generic::IAsyncEnumerable ^ source, bool continueOnCapturedContext);
public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable ConfigureAwait(this System.Collections.Generic.IAsyncEnumerable source, bool continueOnCapturedContext) where T : allows ref struct;
public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable ConfigureAwait(this System.Collections.Generic.IAsyncEnumerable source, bool continueOnCapturedContext);
static member ConfigureAwait : System.Collections.Generic.IAsyncEnumerable<'T> * bool -> System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable<'T>

Public Function ConfigureAwait(Of T) (source As IAsyncEnumerable(Of T), continueOnCapturedContext As Boolean) As ConfiguredCancelableAsyncEnumerable(Of T)

Type Parameters

T

The type of the objects being iterated.

Parameters

source
IAsyncEnumerable

The source enumerable being iterated.

continueOnCapturedContext
Boolean

Whether to capture and marshal back to the current context.

Returns

The configured enumerable.

Applies to