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