Skip to content

Commit 8496766

Browse files
authored
Merge pull request #1485 from jgrosic/patch-1
Fix typo in docs library_with_jtf.md
1 parent c125fc1 commit 8496766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docfx/docs/library_with_jtf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static class LibrarySettings
115115
}
116116
```
117117

118-
This pattern and self-initializer allows all the rest of your library code to assume JTF is always present (so you can use JTF.Run and JTF.RunAsync everywhere w/o feature that JTF will be null), and it mitigates all the deadlocks possible given the host constraints.
118+
This pattern and self-initializer allows all the rest of your library code to assume JTF is always present (so you can use JTF.Run and JTF.RunAsync everywhere w/o fear that JTF will be null), and it mitigates all the deadlocks possible given the host constraints.
119119

120120
Note that when you create your own default instance of JoinableTaskContext (i.e. when the host doesn't), it will consider the thread you're on to be the main thread. If SynchronizationContext.Current is object it will capture it and use it to switch to the main thread when you ask it to (very similar to how VS works today), otherwise any request to SwitchToMainThreadAsync will never switch the thread (since no `SynchronizationContext` was supplied to do so) but otherwise JTF continues to work.
121121

0 commit comments

Comments
 (0)