ContinueWithCapturedContext Method
Definition
- Namespace
- Cuemon.Extensions.Threading.Tasks
- Assemblies
- Cuemon.Extensions.Threading.dll
ContinueWithCapturedContext(Task)
Configures an awaiter to marshal the continuation back to the captured synchronization context.
public static ConfiguredTaskAwaitable ContinueWithCapturedContext(this Task task)
Parameters
Returns
- ConfiguredTaskAwaitable
An object used to await this task.
ContinueWithCapturedContext<TResult>(Task<TResult>)
Configures an awaiter to marshal the continuation back to the captured synchronization context.
public static ConfiguredTaskAwaitable<TResult> ContinueWithCapturedContext<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>.