System::Threading::Tasks::ResultTask::ConfigureAwait method

ResultTask::ConfigureAwait method

Configures how awaits on this result task should behave regarding context capture.

Runtime::CompilerServices::ConfiguredResultTaskAwaitable<T> System::Threading::Tasks::ResultTask<T>::ConfigureAwait(bool continueOnCapturedContext) const
ParameterTypeDescription
continueOnCapturedContextboolWhether to continue on the captured context

ReturnValue

Runtime::CompilerServices::ConfiguredResultTaskAwaitable A configured awaitable for the result

Remarks

This enables fine-grained control over context flow for async/await patterns

See Also