1 implementation of JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ThreadingContext.cs (1)
54public JoinableTaskFactory JoinableTaskFactory
22 references to JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (22)
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (1)
65await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
62_threadingContext.JoinableTaskFactory.Run(async () =>
ExtractMethod\ExtractMethodCommandHandler.cs (3)
91_threadingContext.JoinableTaskFactory.Run(() => _renameService.ActiveSession.CommitAsync(previewChanges: false, context.OperationContext)); 155await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 202await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Host\IStreamingFindReferencesPresenter.cs (1)
127await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
InlineRename\InlineRenameService.cs (1)
151await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
IntelliSense\AsyncCompletion\CommitManager.cs (1)
331_ = _threadingContext.JoinableTaskFactory.RunAsync(async () =>
IntelliSense\ModelComputation.cs (1)
158await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _stopCancellationToken);
Navigation\IDocumentNavigationServiceExtensions.cs (1)
23await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
NavigationBar\NavigationBarController_ModelComputation.cs (2)
79await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable(); 180await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (4)
70await _stateMachine.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(CancellationToken.None); 141await _stateMachine.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 164await _stateMachine.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 177await _stateMachine.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(CancellationToken.None);
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
82await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable(); 113await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable();
Shared\Extensions\ITextSnapshotExtensions.cs (1)
97return threadingContext.JoinableTaskFactory.Run(() =>
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
740tagTrees = _dataSource.ThreadingContext.JoinableTaskFactory.Run(() =>
Tagging\TaggerMainThreadManager.cs (1)
117await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(queueCancellationToken);
Workspaces\ITextBufferVisibilityTracker.cs (1)
83await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable();