1 implementation of JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (1)
Shared\Utilities\ThreadingContext.cs (1)
54
public JoinableTaskFactory
JoinableTaskFactory
24 references to JoinableTaskFactory
Microsoft.CodeAnalysis.EditorFeatures (24)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (1)
69
var success = _threadingContext.
JoinableTaskFactory
.Run(() => TryStartAsync(CancellationToken.None));
Extensibility\NavigationBar\AbstractEditorNavigationBarItemService.cs (1)
65
await 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));
174
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
224
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
Host\IStreamingFindReferencesPresenter.cs (1)
127
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
InlineRename\InlineRenameService.cs (1)
151
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
IntelliSense\AsyncCompletion\CommitManager.cs (1)
331
_ = _threadingContext.
JoinableTaskFactory
.RunAsync(async () =>
IntelliSense\ModelComputation.cs (1)
126
await ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(alwaysYield: true, _stopCancellationToken);
Navigation\IDocumentNavigationServiceExtensions.cs (1)
23
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
NavigationBar\NavigationBarController_ModelComputation.cs (2)
79
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable();
180
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (4)
70
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(CancellationToken.None);
141
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
164
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
177
await _stateMachine.ThreadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(CancellationToken.None);
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (2)
99
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable();
118
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(alwaysYield: true, _cancellationToken).NoThrowAwaitable();
Shared\Extensions\ITextSnapshotExtensions.cs (1)
97
return threadingContext.
JoinableTaskFactory
.Run(() =>
Shared\Extensions\WorkspaceExtensions.cs (1)
32
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (1)
740
tagTrees = _dataSource.ThreadingContext.
JoinableTaskFactory
.Run(() =>
Tagging\TaggerMainThreadManager.cs (1)
117
await _threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(queueCancellationToken);
Workspaces\ITextBufferVisibilityTracker.cs (1)
83
await threadingContext.
JoinableTaskFactory
.SwitchToMainThreadAsync(cancellationToken).NoThrowAwaitable();