Skip to content

Commit

Permalink
Fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Oct 26, 2024
1 parent 9c727cb commit b3a673c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public async Task RunAsyncAsVsTask()
VsTaskRunContext.UIThreadNormalPriority,
async ct =>
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(ct);
Assert.True(ThreadHelper.CheckAccess());
return true;
});
Expand Down Expand Up @@ -233,7 +233,7 @@ await ThreadHelper.JoinableTaskFactory.RunAsyncAsVsTask(
VsTaskRunContext.UIThreadBackgroundPriority,
async ct =>
{
await Task.Delay(100);
await Task.Delay(100, ct);
return 0;
});
#pragma warning disable VSTHRD109 // Switch instead of assert in async methods
Expand Down

0 comments on commit b3a673c

Please sign in to comment.