ThreadingTools Methods
Visual Studio 2015
Namespace:
Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Apply(SynchronizationContext^, Boolean) | Applies the specified SynchronizationContext to the caller's context. |
![]() ![]() | ApplyChangeOptimistically<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. |
![]() ![]() | WithCancellation(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. |
![]() ![]() | WithCancellation<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. |
Show:

