2 instantiations of SemaphoreDisposer
Microsoft.CodeAnalysis.CodeStyle (2)
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (2)
24return new SemaphoreDisposer(semaphore); 31return new SemaphoreDisposer(semaphore);
3 references to SemaphoreDisposer
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\SemaphoreSlimExtensions.cs (3)
14public static SemaphoreDisposer DisposableWait(this SemaphoreSlim semaphore, CancellationToken cancellationToken = default) 28public static async ValueTask<SemaphoreDisposer> DisposableWaitAsync(this SemaphoreSlim semaphore, CancellationToken cancellationToken = default) 59throw new ObjectDisposedException($"Somehow a {nameof(SemaphoreDisposer)} is being disposed twice.");