vs-threading icon indicating copy to clipboard operation
vs-threading copied to clipboard

The Microsoft.VisualStudio.Threading is a xplat library that provides many threading and synchronization primitives used in Visual Studio and other applications.

Results 164 vs-threading issues
Sort by recently updated
recently updated
newest added

#### Bug description Some of the APIs/methods called out in the documentation appear to have been added recently, and as a result are not available even when targeting a slightly...

documentation

[This Azure Pipelines build](https://andrewarnott.visualstudio.com/OSS/_build/results?buildId=221&view=logs) experienced a failure in the `UpgradeableReadLockAsyncSynchronousReleaseAllowsOtherUpgradeableReaders` test. ``` 2018-09-22T06:48:12.4851424Z Failed UpgradeableReadLockAsyncSynchronousReleaseAllowsOtherUpgradeableReaders 2018-09-22T06:48:12.4851652Z Error Message: 2018-09-22T06:48:12.4851860Z System.AggregateException : One or more errors occurred. 2018-09-22T06:48:12.4852066Z ---- Assert.True() Failure...

test bug

#### Bug description VSTHRD004 incorrectly fires on results of methods are returned to the caller. #### Repro steps ``` C# public static JoinableTaskFactory.MainThreadAwaitable SwitchToUIThread(this IProjectThreadingService threading, CancellationToken cancellationToken) { return...

analyzers

The `HangReportNotSuppressedOnLongRunningTaskCompleted` test [failed on appveyor](https://ci.appveyor.com/project/AArnott/vs-threading/build/16.0.42-beta+gb26dd38371#L937) with this output: ``` HangReportNotSuppressedOnLongRunningTaskCompleted [FAIL] Assert.True() Failure Expected: True Actual: False Stack Trace: src\Microsoft.VisualStudio.Threading.Tests\JoinableTaskContextTests.cs(357,0): at Microsoft.VisualStudio.Threading.Tests.JoinableTaskContextTests.HangReportNotSuppressedOnLongRunningTaskCompleted() ```

test bug

The `ExecuteAsync_Contested` test [failed on AppVeyor](https://ci.appveyor.com/project/AArnott/vs-threading/build/16.0.42-beta+gb26dd38371.R#L908) with the following output: ``` ExecuteAsync_Contested(mode: NotAllowed) [FAIL] System.Threading.Tasks.TaskCanceledException : A task was canceled. Stack Trace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task...

test bug

#### Is your feature request related to a problem? Please describe. People regularly use task chaining to accomplish a serialized, in-order execution of arbitrary operations. For example: ```cs class Foo...

analyzers

#### Bug description The [default implementation on `SynchronizationContext.CreateCopy()`](JoinableTaskSynchronizationContext) returns a new instance of its own type. But that type has very different behavior than `JoinableTaskSynchronizationContext`, so it would be incorrect...

bug

#### Is your feature request related to a problem? Please describe. VSTHRD002 reports violations for use of _specific_ synchronous waiting APIs. For applications that abstracted this and are working to...

enhancement
analyzers

#### Bug description VSTHR002 warns even though the task has been checked for completion or have been awaited. It should _not_ warn in these cases, since the task is provably...

enhancement
analyzers

#### Is your feature request related to a problem? Please describe. @sharwell reports that in testing he finds it useful to define a `SynchronizationContext` implementation that throws when `Post` is...

enhancement