Skip to content

JS Coroutine started as undispatched, why? #36

Answered by ForteScarlet
lppedd asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
To be honest, I can't quite remember exactly why I wrote that. The "me now" guesses that the "me then" was probably because I read Deferred<T>.asPromise():

https://github.com/Kotlin/kotlinx.coroutines/blob/f227432328afe41505a62a9fa6ee9d12ae6aab80/kotlinx-coroutines-core/js/src/Promise.kt#L50-L57

used UNDISPATCHED, so I followed suit.

Probably no deep reason 😂

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lppedd
Comment options

@lppedd
Comment options

@ForteScarlet
Comment options

Answer selected by lppedd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants