We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df4a6e5 commit 9a245a3Copy full SHA for 9a245a3
doc/library_with_jtf.md
@@ -71,9 +71,9 @@ internal class SomeUserOfJTF
71
[Import]
72
ThreadingContext ThreadingContext { get; set; }
73
74
- public async Task SomeMainThreadMethodAsync()
+ public async Task SomeMainThreadMethodAsync(CancellationToken cancellationToken)
75
{
76
- await this.ThreadingContext.JoinableTaskContext.SwitchToMainThreadAsync();
+ await this.ThreadingContext.JoinableTaskContext.Factory.SwitchToMainThreadAsync(cancellationToken);
77
// Do work here.
78
}
79
0 commit comments