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)

Protected Friend Overridable Sub WaitSynchronously (
	task As Task
)

Parameters

task
Type: System.Threading.Tasks.Task

The task whose completion is being waited on.

Return to top
Show: