Skip to content

Commit

Permalink
Pass cancellation token
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Nov 30, 2023
1 parent 9268db6 commit e24ec2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ITargetBlock<IProjectVersionedValue<WorkspaceUpdate>> actionBlock
// while waiting for data that won't ever arrive due to the fault.
_ = actionBlock.Completion.ContinueWith(
task => workspace.Fault(task.Exception),
CancellationToken.None,
cancellationToken,
TaskContinuationOptions.OnlyOnFaulted,
TaskScheduler.Default);

Expand Down Expand Up @@ -158,7 +158,7 @@ var buildTransformBlock
// In order to avoid this, we defer joining upstream sources until after the solution has loaded.
_ = _tasksService.SolutionLoadedInHost.ContinueWith(
_ => workspace.ChainDisposal(ProjectDataSources.JoinUpstreamDataSources(joinableTaskFactory, _projectService.Services.FaultHandler, source.ActiveConfiguredProjectSource, source.ProjectBuildRuleSource)),
CancellationToken.None,
cancellationToken,
TaskContinuationOptions.None,
TaskScheduler.Default);

Expand Down

0 comments on commit e24ec2e

Please sign in to comment.