vs-threading

by microsoft

microsoft /vs-threading

The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchroniza...

503 Stars 75 Forks Last release: about 2 months ago (v16.7.54) Other 3.1K Commits 71 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Microsoft.VisualStudio.Threading

NuGet package Build Status Join the chat at https://gitter.im/vs-threading/Lobby

Analyzers: NuGet package

Features

  • Async versions of many threading synchronization primitives
    • AsyncAutoResetEvent
    • AsyncBarrier
    • AsyncCountdownEvent
    • AsyncManualResetEvent
    • AsyncReaderWriterLock
    • AsyncSemaphore
    • ReentrantSemaphore
  • Async versions of very common types
    • AsyncEventHandler
    • AsyncLazy
    • AsyncLazyInitializer
    • AsyncLocal
    • AsyncQueue
  • Await extension methods
    • Await on a
      TaskScheduler
      to switch to it. Switch to a background thread with
      await TaskScheduler.Default;
    • Await on a
      Task
      with a timeout
    • Await on a
      Task
      with cancellation
  • JoinableTaskFactory
    that 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.

Documentation

Supported platforms

  • .NET 4.5
  • .NET 4.6
  • .NET Standard 1.3
  • .NET Standard 2.0

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.