15 references to ValueTaskFactory
Microsoft.CodeAnalysis.Workspaces (15)
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
314
return
ValueTaskFactory
.CompletedTask;
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
62
return
ValueTaskFactory
.CompletedTask;
Notification\AbstractGlobalOperationNotificationService.cs (1)
55
return
ValueTaskFactory
.CompletedTask;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ReferenceCountedDisposable.cs (2)
187
return
ValueTaskFactory
.CompletedTask;
193
return
ValueTaskFactory
.CompletedTask;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
59
return
ValueTaskFactory
.FromResult(Array.Empty<T>());
79
return
ValueTaskFactory
.FromResult(result);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (1)
24
=>
ValueTaskFactory
.FromResult(reader(optionsReader, languageServices.Language));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\AsyncSymbolVisitor`1.cs (2)
15
=> symbol?.Accept(this) ??
ValueTaskFactory
.FromResult(DefaultResult);
18
=>
ValueTaskFactory
.FromResult(DefaultResult);
SymbolSearch\ISymbolSearchService.cs (3)
159
=>
ValueTaskFactory
.FromResult(ImmutableArray<PackageResult>.Empty);
162
=>
ValueTaskFactory
.FromResult(ImmutableArray<PackageWithAssemblyResult>.Empty);
165
=>
ValueTaskFactory
.FromResult(ImmutableArray<ReferenceAssemblyResult>.Empty);
Workspace\IsolatedAnalyzerReferenceSet.cs (1)
45
return
ValueTaskFactory
.FromResult(references);
Workspace\Workspace_Editor.cs (1)
357
return
ValueTaskFactory
.CompletedTask;