The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.
Перейти к файлу
dependabot[bot] 73aa23b392
Bump Microsoft.VisualStudio.Validation from 17.0.53 to 17.0.58 (#1050)
Bumps [Microsoft.VisualStudio.Validation](https://github.com/microsoft/vs-validation) from 17.0.53 to 17.0.58.
- [Release notes](https://github.com/microsoft/vs-validation/releases)
- [Commits](https://github.com/microsoft/vs-validation/commits)

---
updated-dependencies:
- dependency-name: Microsoft.VisualStudio.Validation
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 09:52:33 -06:00
.devcontainer Update devcontainer Dockerfile to match global.json 2022-04-11 13:46:40 -06:00
.github Merge branch 'main' into microbuild 2022-03-09 17:14:43 -07:00
.vscode Apply latest Library.Template 2021-11-19 15:29:51 -07:00
azure-pipelines Fix VSInsertion artifact collection 2022-04-12 09:05:26 -06:00
doc Update VSTHRD100.md 2022-04-11 16:31:42 +03:00
loc/lcl LEGO: check in for main to temporary branch. (#968) 2021-11-29 08:29:32 -07:00
src Bump Microsoft.VisualStudio.Validation from 17.0.53 to 17.0.58 (#1050) 2022-06-06 09:52:33 -06:00
test Bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0 (#1054) 2022-06-06 15:44:17 +00:00
tools Apply Library.Template updates 2022-04-12 06:05:16 -06:00
.editorconfig Apply latest Library.Template 2021-11-19 15:29:51 -07:00
.gitattributes Apply latest Library.Template 2021-11-19 15:29:51 -07:00
.gitignore Ignore launchSettings.json 2022-03-30 18:13:34 -06:00
CONTRIBUTING.md Now welcoming 3rd party pull requests 2020-08-18 12:18:22 -06:00
Directory.Build.props Bump StyleCop.Analyzers.Unstable from 1.2.0.406 to 1.2.0.435 (#1051) 2022-06-01 15:26:46 -06:00
Directory.Build.rsp Apply latest Library.Template 2021-11-19 15:29:51 -07:00
Directory.Build.targets Apply latest Library.Template 2021-11-19 15:29:51 -07:00
LICENSE Add LICENSE file 2016-09-24 07:37:39 -07:00
Microsoft.VisualStudio.Threading.sln Drop Windows 7 support and (unstable) test 2022-05-19 09:49:40 -06:00
README.md Update README.md 2019-01-03 14:40:00 -07:00
azure-pipelines.yml Simplify release and CI package push 2022-03-31 10:15:07 -06:00
global.json Apply Library.Template updates 2022-04-12 06:05:16 -06:00
init.cmd Apply latest Library.Template pattern 2020-09-14 20:43:23 -06:00
init.ps1 Apply latest Library.Template including SDT additions 2022-01-05 15:59:55 -07:00
nuget.config Fix package restore on Windows 2021-08-17 12:15:43 -06:00
stylecop.json Apply Library.Template updates 2022-04-12 06:05:16 -06:00
version.json Build 17.3-alpha version 2022-04-05 06:38:47 -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