vs-threading

Microsoft.VisualStudio.Threading是一个xplat库,提供Visual Studio和其他应用程序中使用的许多线程和同步原语。(The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.)

Github stars Tracking Chart

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<T>
    • AsyncLazyInitializer
    • AsyncLocal<T>
    • AsyncQueue<T>
  • 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

Overview

Name With Ownermicrosoft/vs-threading
Primary LanguageC#
Program languagePowerShell (Language Count: 5)
PlatformWindows
License:Other
Release Count107
Last Release Namev17.10.48 (Posted on )
First Release Namerelease/Dev14RC (Posted on )
Created At2016-10-05 14:27:26
Pushed At2024-05-02 23:44:33
Last Commit At
Stargazers Count1k
Watchers Count46
Fork Count148
Commits Count5k
Has Issues Enabled
Issues Count386
Issue Open Count95
Pull Requests Count638
Pull Requests Open Count3
Pull Requests Close Count260
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top