JoinableTask<T> Class

 

Tracks asynchronous operations and allows you to Join asynchronous operations. This is to avoid deadlocks while synchronously blocking the Main thread until the completion of the operation.

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

System.Object
  Microsoft.VisualStudio.Threading.JoinableTask
    Microsoft.VisualStudio.Threading.JoinableTask<T>

public class JoinableTask<T> : JoinableTask

Type Parameters

T

The type of the value returned by the asynchronous operation.

NameDescription
System_CAPS_pubpropertyIsCompleted

Determines whether the asynchronous operation represented by this instance has completed.(Inherited from JoinableTask.)

System_CAPS_pubpropertyTask

Gets the asynchronous task that completes when the asynchronous operation completes.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetAwaiter()

Gets an awaiter that is equivalent to calling JoinAsync.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodJoin(CancellationToken)

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

System_CAPS_pubmethodJoinAsync(CancellationToken)

Joins any main thread affinity of the caller with the asynchronous operation. This is to avoid deadlocks in case the main thread ultimately synchronously blocks while waiting for the operation to complete.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This type is thread-safe for all members.

Return to top
Show: