ContinueWithSuppressedContext Method
Definition
- Namespace
- Cuemon.Extensions.Threading.Tasks
- Assemblies
- Cuemon.Extensions.Threading.dll
ContinueWithSuppressedContext(Task)
Configures an awaiter to suppress capturing a synchronization context back to the continuation.
public static ConfiguredTaskAwaitable ContinueWithSuppressedContext(this Task task)
Parameters
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
Returns
- ConfiguredTaskAwaitable<TResult>
An object used to await this task.
Type Parameters
TResultThe type of the result produced by this Task<TResult>.