JoinableTaskFactory Methods

 

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

NameDescription
System_CAPS_protmethodAdd(JoinableTask)

Adds the specified joinable task to the applicable collection.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnTransitionedToMainThread(JoinableTask, Boolean)

Occurs whenever a joinable task has completed a transition to the main thread.

System_CAPS_protmethodOnTransitioningToMainThread(JoinableTask)

Occurs when a joinable task has requested a transition to the main thread.

System_CAPS_protmethodPostToUnderlyingSynchronizationContext(SendOrPostCallback, Object)

Posts a callback to the main thread via the underlying dispatcher, or to the threadpool when no dispatcher exists on the main thread.

System_CAPS_pubmethodRun(Func(Of Task))

Runs the specified asynchronous method.

System_CAPS_pubmethodRun(Of T)(Func(Of Task(Of T)))

Runs the specified asynchronous method.

System_CAPS_pubmethodRunAsync(Func(Of Task))

Wraps the invocation of an asynchronous method so that it may execute asynchronously, but may potentially be synchronously completed (waited on) in the future.

System_CAPS_pubmethodRunAsync(Of T)(Func(Of Task(Of T)))

Wraps the invocation of an asynchronous method so that it may execute asynchronously, but may potentially be synchronously completed (waited on) in the future.

System_CAPS_pubmethodSwitchToMainThreadAsync(CancellationToken)

Gets an awaitable whose continuations execute on the synchronization context with which this instance was initialized, so that both deadlocks and reentrancy are mitigated.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_protmethodWaitSynchronously(Task)

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.

System_CAPS_protmethodWaitSynchronouslyCore(Task)

Synchronously blocks the calling thread for the completion of the specified task.

Return to top
Show: