VsTaskLibraryHelper.ResumeWith(IVsTask, VsTaskRunContext) 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.
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.