JoinableTask::Join Method (CancellationToken)

 

Synchronously blocks the calling thread until the operation has completed. If the calling thread is the Main thread, deadlocks are mitigated.

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

public:
void Join(
	CancellationToken cancellationToken = null
)

Parameters

cancellationToken
Type: System.Threading::CancellationToken

A cancellation token that will exit this method before the task is completed.

Return to top
Show: