Partager via


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

.NET Framework Security

See Also

Reference

JoinableTask Class

Microsoft.VisualStudio.Threading Namespace