Skip to content

Commit 719ee9a

Browse files
dualscytherelizarov
authored andcommitted
Fix typo in coroutines-guide.md
1 parent 9f72ff4 commit 719ee9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coroutines-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ Post-main, current thread: Thread[main @coroutine#1,5,main], thread local value:
15361536

15371537
<!--- TEST FLEXIBLE_THREAD -->
15381538

1539-
`ThreadLocal` has first-class support and can be used with any primitive `kotlinx.corotuines` provides.
1539+
`ThreadLocal` has first-class support and can be used with any primitive `kotlinx.coroutines` provides.
15401540
It has one key limitation: when thread-local is mutated, a new value is not propagated to the coroutine caller
15411541
(as context element cannot track all `ThreadLocal` object accesses) and updated value is lost on the next suspension.
15421542
Use [withContext] to update the value of the thread-local in a coroutine, see [asContextElement] for more details.

0 commit comments

Comments
 (0)