Microsoft.VisualStudio.Threading.Only (17.14.15)
Published 2026-09-09 02:38:19 +03:30 by kayer
Installation
dotnet nuget add source --name kayer --username your_username --password your_token dotnet add package --source kayer --version 17.14.15 Microsoft.VisualStudio.Threading.OnlyAbout this package
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
This package contains only the library, without a dependency on the analyzers.
Use the Microsoft.VisualStudio.Threading package to get the library and analyzers together.
Microsoft.VisualStudio.Threading
Async synchronization primitives, async collections, TPL and dataflow extensions. The JoinableTaskFactory allows synchronously blocking the UI thread for async work. This package is applicable to any .NET application (not just Visual Studio).
Features
- Async versions of many threading synchronization primitives
AsyncAutoResetEventAsyncBarrierAsyncCountdownEventAsyncManualResetEventAsyncReaderWriterLockAsyncSemaphoreReentrantSemaphore
- Async versions of very common types
AsyncEventHandlerAsyncLazy<T>AsyncLazyInitializerAsyncLocal<T>AsyncQueue<T>
- Await extension methods
- Await on a
TaskSchedulerto switch to it. Switch to a background thread withawait TaskScheduler.Default; - Await on a
Taskwith a timeout - Await on a
Taskwith cancellation
- Await on a
JoinableTaskFactorythat allows you to schedule asynchronous or synchronous work that does not deadlock with the UI thread even when the UI thread needs to synchronously block on the result.