2 instantiations of SemaphoreDisposer
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (2)
16return new SemaphoreDisposer(semaphore); 23return new SemaphoreDisposer(semaphore);
3 references to SemaphoreDisposer
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (3)
13public static SemaphoreDisposer DisposableWait(this SemaphoreSlim semaphore, CancellationToken cancellationToken = default) 20public static async ValueTask<SemaphoreDisposer> DisposableWaitAsync(this SemaphoreSlim semaphore, CancellationToken cancellationToken = default) 51throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");