Skip to content

Commit

Permalink
Update coroutines-guide-ui.md
Browse files Browse the repository at this point in the history
[Update]
- typo: what you might want to express here is `JavaScript event dispatch thread `
  • Loading branch information
rosuH authored and qwwdfsad committed Jan 9, 2019
1 parent b65dc7f commit 66f0123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/coroutines-guide-ui.md
Expand Up @@ -659,7 +659,7 @@ As you can see, execution immediately continues after [launch], while the corout
for execution later. All UI dispatchers in `kotlinx.coroutines` are implemented this way. Why so?

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

0 comments on commit 66f0123

Please sign in to comment.