12 references to Run
dotnet-svcutil-lib (1)
Shared\Utilities\AsyncHelper.cs (1)
50finishedTask = await Task.WhenAny(Task<T>.Run(func, cancellationToken), taskCompletionSrc.Task);
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (3)
91return Task.Run(() => 118_lazyCompilationScopeTask = Task.Run(() => 153symbolScopeTask = Task.Run(() => getSymbolAnalysisScopeCore(), cancellationToken);
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
153var highlightAndFilterTask = Task.Run(
Microsoft.CodeAnalysis.Features (4)
Completion\FileSystemCompletionHelper.cs (1)
119=> Task.Run(() => GetItems(directoryPath, cancellationToken), cancellationToken);
EditAndContinue\CommittedSolution.cs (1)
373return await Task.Run(() => TryGetPdbMatchingSourceTextFromDisk(log, filePath, sourceText.Encoding, requiredChecksum, checksumAlgorithm), cancellationToken).ConfigureAwait(false);
EditAndContinue\DebuggingSession.cs (2)
280return Task.Run(ReadMvid, cancellationToken); 504_ = Task.Run(() => DebuggerService.PrepareModuleForUpdateAsync(mvid, cancellationToken), cancellationToken);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\AsyncLazyTests.cs (1)
199var lazy = AsyncLazy.Create(static (cancellationTokenSource, c) => Task.Run((Func<object>)(() =>
Microsoft.Maui.Controls (1)
ImageSource.cs (1)
91 return new StreamImageSource { Stream = token => Task.Run(stream, token) };
Microsoft.Maui.Resizetizer (1)
AsyncTaskExtensions.cs (1)
48 Task.Run(body, asyncTask.CancellationToken);