Compartilhar via


VsTaskLibraryHelper.ResumeWith(IVsTask, VsTaskRunContext) Method

Definition

Extension method for task awatier to support awaits with a specific context.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Internal::VisualStudio::Shell::VsTaskAwaiter ^ ResumeWith(Microsoft::VisualStudio::Shell::Interop::IVsTask ^ task, Microsoft::VisualStudio::Shell::VsTaskRunContext context);
public static Microsoft.Internal.VisualStudio.Shell.VsTaskAwaiter ResumeWith (this Microsoft.VisualStudio.Shell.Interop.IVsTask task, Microsoft.VisualStudio.Shell.VsTaskRunContext context);
static member ResumeWith : Microsoft.VisualStudio.Shell.Interop.IVsTask * Microsoft.VisualStudio.Shell.VsTaskRunContext -> Microsoft.Internal.VisualStudio.Shell.VsTaskAwaiter
<Extension()>
Public Function ResumeWith (task As IVsTask, context As VsTaskRunContext) As VsTaskAwaiter

Parameters

task
IVsTask

The task that will be used to schedule continuations.

context
VsTaskRunContext

Context that the continuation would be scheduled under.

Returns

Microsoft.Internal.VisualStudio.Shell.VsTaskAwaiter

an awaitable object.

Applies to