JoinableTaskFactory::WaitSynchronously Method (Task^)

 

Synchronously blocks the calling thread for the completion of the specified task. If running on the main thread, any applicable message pump is suppressed while the thread sleeps.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

public protected:
virtual void WaitSynchronously(
	Task^ task
)

Parameters

task
Type: System.Threading.Tasks::Task^

The task whose completion is being waited on.

Return to top
Show: