JoinableTaskFactory.WaitSynchronously Method
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)
Syntax
'Declaration
Protected Friend Overridable Sub WaitSynchronously ( _
task As Task _
)
protected internal virtual void WaitSynchronously(
Task task
)
protected public:
virtual void WaitSynchronously(
Task^ task
)
abstract WaitSynchronously :
task:Task -> unit
override WaitSynchronously :
task:Task -> unit
function WaitSynchronously(
task : Task
)
Parameters
task
Type: System.Threading.Tasks.TaskThe task whose completion is being waited on.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.