AwaitExtensions.ConfigureAwait(YieldAwaitable, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a YieldAwaitable to a AwaitExtensions.ConfiguredTaskYieldAwaitable.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::VisualStudio::Threading::AwaitExtensions::ConfiguredTaskYieldAwaitable ConfigureAwait(System::Runtime::CompilerServices::YieldAwaitable yieldAwaitable, bool continueOnCapturedContext);
public static Microsoft.VisualStudio.Threading.AwaitExtensions.ConfiguredTaskYieldAwaitable ConfigureAwait (this System.Runtime.CompilerServices.YieldAwaitable yieldAwaitable, bool continueOnCapturedContext);
static member ConfigureAwait : System.Runtime.CompilerServices.YieldAwaitable * bool -> Microsoft.VisualStudio.Threading.AwaitExtensions.ConfiguredTaskYieldAwaitable
<Extension()>
Public Function ConfigureAwait (yieldAwaitable As YieldAwaitable, continueOnCapturedContext As Boolean) As AwaitExtensions.ConfiguredTaskYieldAwaitable
Parameters
- yieldAwaitable
- YieldAwaitable
The result of Yield().
- continueOnCapturedContext
- Boolean
A value indicating whether the continuation should run on the captured SynchronizationContext, if any.
Returns
An awaitable.