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

Bumps [System.Collections.Immutable](https://github.com/dotnet/runtime) from 6.0.0 to 8.0.0. Release notes Sourced from System.Collections.Immutable's releases. .NET 8.0.0 Release What's Changed [release/8.0-rc1] [release/8.0] Events for IL methods without IL headers by @​github-actions in dotnet/runtime#92317...

dependencies

In Visual Studio, we have case where 500MB or more in memory is occupied with already-executed `SingleExecuteProtector` objects in the WPF Dispatcher's queue. To avoid deadlocks in cases of modal...

enhancement

#### Bug description VSTHRD104 claims: "Expose an async version of this method that does not synchronously block. Then simplify this method to call that async method within a JoinableTaskFactory.Run delegate."...

bug
help wanted
analyzers

#### Bug description When a Task-valued lambda is passed into a method expecting an `Expression` argument, VSTRD110 shouldn't fire, because no invocation is likely being made. #### Repro steps Code...

bug
analyzers

#### Bug description [VSTHRD110](https://github.com/Microsoft/vs-threading/blob/main/doc/analyzers/VSTHRD110.md) detects a `GetAwaiter` method is available from an extension method. However, the `GetAwaiter` method is not compatible with the actual result, so the code cannot be...

bug
analyzers

VS 2022 v17.4.2: **Steps to Reproduce**: Try to compile the following code: ```cs ... Task r1 = TestAsyncDelayAsync(15).ContinueWith((Task task) => { return TestAsyncDelayAsync(task.**Result**.Value + 10); }, TaskScheduler.Default).Unwrap(); var r2 =...

bug
analyzers

I know that `AsyncReaderWriterLock` has the "completion" feature (i.e. `asyncReaderWriterLock.Complete()`) but: https://github.com/microsoft/vs-threading/blob/1738f83f42856926f50820fc49f44d80d2dbbab3/src/Microsoft.VisualStudio.Threading/AsyncReaderWriterLock.cs#L408-L416 is not really helpful in explaining what happens when the `AsyncReaderWriterLock.Complete()` has been called. For me it throws:...

documentation

#### Bug description #### Repro steps ```c# var tt = Task.Run(() => { Task.Delay(1000).Wait(); return new int[]{1, 2}; }).ContinueWith(t => { Dispatcher.UIThread.InvokeAsync(() => { Console.WriteLine(t.Result[0]); }); }); ``` In this...

bug
analyzers

#### Is your feature request related to a problem? Please describe. Previously commented in another issue: https://github.com/microsoft/vs-threading/issues/272#issuecomment-387459857 I have a method I want to be free-threaded, but I have dependencies...

enhancement
analyzers

#### Bug description The documentation for IsCompleted is "Gets a value indicating whether the queue has completed." which implies that it is determined by whether AsyncQueue.Complete() has been called. The...

documentation