Table of Contents

ContinueWithSuppressedContext Method

Definition

Namespace
Cuemon.Extensions.Threading.Tasks
Assemblies
Cuemon.Extensions.Threading.dll
Source
src/Cuemon.Extensions.Threading/Tasks/TaskExtensions.cs

ContinueWithSuppressedContext(Task)

Configures an awaiter to suppress capturing a synchronization context back to the continuation.

public static ConfiguredTaskAwaitable ContinueWithSuppressedContext(this Task task)

Parameters

task Task

The Task to extend.

Returns

ConfiguredTaskAwaitable

An object used to await this task.

ContinueWithSuppressedContext<TResult>(Task<TResult>)

Configures an awaiter to suppress capturing a synchronization context back to the continuation.

public static ConfiguredTaskAwaitable<TResult> ContinueWithSuppressedContext<TResult>(this Task<TResult> task)

Parameters

task Task<TResult>

The Task to extend.

Returns

ConfiguredTaskAwaitable<TResult>

An object used to await this task.

Type Parameters

TResult

The type of the result produced by this Task<TResult>.