JoinableTask.Join Method
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)
Syntax
'Declaration
Public Sub Join ( _
cancellationToken As CancellationToken _
)
public void Join(
CancellationToken cancellationToken
)
public:
void Join(
CancellationToken cancellationToken
)
member Join :
cancellationToken:CancellationToken -> unit
public function Join(
cancellationToken : CancellationToken
)
Parameters
cancellationToken
Type: System.Threading.CancellationTokenA cancellation token that will exit this method before the task is completed.
.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.