The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
Перейти к файлу
Andrew Arnott bb4b94eac9
Merge pull request #308 from AArnott/fix255
Enhance VSTHRD003 to report any awaiting of tasks scheduled in another context
2018-07-11 22:42:18 -07:00
.github/ISSUE_TEMPLATE Update bug template 2018-05-11 13:29:30 -07:00
doc Merge pull request #308 from AArnott/fix255 2018-07-11 22:42:18 -07:00
src Merge pull request #308 from AArnott/fix255 2018-07-11 22:42:18 -07:00
tools Stop downloading credential helper 2017-01-22 21:52:16 -08:00
.appveyor.yml Don't build on .github changes 2018-05-03 22:15:54 -07:00
.gitattributes Adds .gitattributes file. 2014-09-24 17:05:27 -07:00
.gitignore Ignore msbuild.binlog files 2018-02-18 20:52:15 -08:00
.vsts-ci.yml Optimize based on master 2018-07-08 22:40:34 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md doc 2018-02-28 23:32:19 -08:00
LICENSE Add LICENSE file 2016-09-24 07:37:39 -07:00
README.md Adjust placement of badge 2017-02-05 22:58:45 -08:00
nuget.config Update packages to fix pack warnings 2017-09-02 14:19:44 -07:00

README.md

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
    • AsyncManualResetEvent
    • AsyncBarrier
    • AsyncCountdownEvent
    • AsyncSemaphore
    • AsyncReaderWriterLock
  • Async versions of very common types
    • AsyncLazy<T>
    • AsyncLocal<T>
    • AsyncQueue<T>
    • AsyncEventHandler
  • 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
  • Windows 8
  • Windows Phone 8.1
  • .NET Portable (Profile111, or .NET Standard 1.1)