The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
Перейти к файлу
Andrew Arnott 4de5495c75
Apply latest Library.Template pattern
Also enable some analyzers and fix up all the warnings.
2020-09-14 20:43:23 -06:00
.github Add Dependabot and update many dependencies 2020-08-04 12:22:13 -06:00
azure-pipelines Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
doc Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
src Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
test Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
tools Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
.editorconfig Apply latest Library.Template pattern 2020-09-14 20:43:23 -06: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
CONTRIBUTING.md Now welcoming 3rd party pull requests 2020-08-18 12:18:22 -06:00
Directory.Build.props Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
Directory.Build.targets Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
LICENSE Add LICENSE file 2016-09-24 07:37:39 -07:00
Microsoft.VisualStudio.Threading.sln Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
README.md Update README.md 2019-01-03 14:40:00 -07:00
azure-pipelines.yml Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
global.json Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
init.cmd Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
init.ps1 Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
nuget.config Fix packages path in nuget.config 2019-10-11 10:10:14 -06:00
stylecop.json Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
version.json Apply latest Library.Template pattern 2020-09-14 20:43:23 -06: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
    • 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