The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
Перейти к файлу
Andrew Arnott 6aab1a45c9
Document tip about finding a JTF instance
Closes #627
2020-05-07 13:13:23 -06:00
.github/ISSUE_TEMPLATE Normalize text files in the repository 2018-08-04 21:55:19 -05:00
azure-pipelines Skip analyzers in insertion for optprof runs 2020-05-04 17:32:16 -06:00
doc Document tip about finding a JTF instance 2020-05-07 13:13:23 -06:00
src Merge pull request #626 from AArnott/dropVBSupport 2020-05-06 16:30:05 -06:00
tools Apply Library.Template pattern 2019-10-11 09:12:30 -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
.vsts-ci.yml Switch MicroBuild plugin inputs from variables to parameters 2020-04-17 22:42:36 -06:00
CONTRIBUTING.md Update CONTRIBUTING doc 2019-10-09 13:14:03 -06:00
LICENSE Add LICENSE file 2016-09-24 07:37:39 -07:00
README.md Update README.md 2019-01-03 14:40:00 -07:00
global.json Update to .NET Core SDK 3.1.100 2020-02-27 23:26:55 -07:00
init.cmd Apply Library.Template pattern 2019-10-11 09:12:30 -06:00
init.ps1 Build WinDBG extension package 2019-11-08 20:21:53 -07:00
nuget.config Fix packages path in nuget.config 2019-10-11 10:10:14 -06:00
version.json Set version to '16.7-alpha' 2020-04-03 15:56:02 -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