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