ThreadingTools Methods

 

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticApply(SynchronizationContext^, Boolean)

Applies the specified SynchronizationContext to the caller's context.

System_CAPS_pubmethodSystem_CAPS_staticApplyChangeOptimistically<T>(T, Func<T, T>^)

Optimistically performs some value transformation based on some field and tries to apply it back to the field, retrying as many times as necessary until no other thread is manipulating the same field.

System_CAPS_pubmethodSystem_CAPS_staticWithCancellation(Task^, CancellationToken)

Wraps a task with one that will complete as cancelled based on a cancellation token, allowing someone to await a task but be able to break out early by cancelling the token.

System_CAPS_pubmethodSystem_CAPS_staticWithCancellation<T>(Task<T>^, CancellationToken)

Wraps a task with one that will complete as cancelled based on a cancellation token, allowing someone to await a task but be able to break out early by cancelling the token.

Return to top
Show: