ConfigureAwait()

ResultTask::ConfigureAwait(bool) const 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

Arguments

ParameterTypeDescription
continueOnCapturedContextboolWhether to continue on the captured context

Return Value

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

Remarks

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

See Also