Skip to content

Commit 66f0123

Browse files
rosuHqwwdfsad
authored andcommitted
Update coroutines-guide-ui.md
[Update] - typo: what you might want to express here is `JavaScript event dispatch thread `
1 parent b65dc7f commit 66f0123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/coroutines-guide-ui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ As you can see, execution immediately continues after [launch], while the corout
659659
for execution later. All UI dispatchers in `kotlinx.coroutines` are implemented this way. Why so?
660660

661661
Basically, the choice here is between "JS-style" asynchronous approach (async actions
662-
are always postponed to be executed later in the even dispatch thread) and "C#-style" approach
662+
are always postponed to be executed later in the event dispatch thread) and "C#-style" approach
663663
(async actions are executed in the invoker thread until the first suspension point).
664664
While, C# approach seems to be more efficient, it ends up with recommendations like
665665
"use `yield` if you need to ....". This is error-prone. JS-style approach is more consistent

0 commit comments

Comments
 (0)