1 implementation of JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ThreadingContext.cs (1)
54public JoinableTaskFactory JoinableTaskFactory
24 references to JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (24)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (1)
69var success = _threadingContext.JoinableTaskFactory.Run(() => TryStartAsync(CancellationToken.None));
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (1)
65await ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
ExtractInterface\AbstractExtractInterfaceCommandHandler.cs (1)
62_threadingContext.JoinableTaskFactory.Run(async () =>
ExtractMethod\ExtractMethodCommandHandler.cs (3)
87_threadingContext.JoinableTaskFactory.Run(() => _renameService.ActiveSession.CommitAsync(previewChanges: false, context.OperationContext)); 174await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); 224await _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)
126await 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)
99await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable(); 118await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable();
Shared\Extensions\ITextSnapshotExtensions.cs (1)
97return threadingContext.JoinableTaskFactory.Run(() =>
Shared\Extensions\WorkspaceExtensions.cs (1)
32await threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
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();