15 references to DisposableWaitAsync
Microsoft.CodeAnalysis.Workspaces (15)
FindSymbols\FindReferences\DependentProjectsFinder.cs (4)
144
using (await s_solutionToDependentProjectMapGate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
155
using (await s_solutionToDependentProjectMapGate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
342
using (await s_metadataIdToAssemblyNameGate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
374
using (await s_metadataIdToAssemblyNameGate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (2)
246
? await s_gate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false)
261
? await s_gate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
387
using (await _project._gate.
DisposableWaitAsync
().ConfigureAwait(false))
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
515
using (await _gate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
553
using (useAsync ? await _gate.
DisposableWaitAsync
().ConfigureAwait(false) : _gate.DisposableWait())
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (3)
233
using (await _gate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
244
using (useAsync ? await _gate.
DisposableWaitAsync
().ConfigureAwait(false) : _gate.DisposableWait())
292
using (useAsync ? await _gate.
DisposableWaitAsync
().ConfigureAwait(false) : _gate.DisposableWait())
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
261
using (await buildLock.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
Workspace\Solution\VersionSource\RecoverableTextAndVersion.RecoverableText.cs (1)
116
using (await Gate.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false))
Workspace\Workspace.cs (1)
518
using (useAsync ? await _serializationLock.
DisposableWaitAsync
(cancellationToken).ConfigureAwait(false) : _serializationLock.DisposableWait(cancellationToken))