JS Coroutine started as undispatched, why? #36
-
Hey there! |
Beta Was this translation helpful? Give feedback.
Answered by
ForteScarlet
Aug 23, 2023
Replies: 1 comment 3 replies
-
Hello! used Probably no deep reason 😂 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
lppedd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 😂