https://kotlinlang.org logo
#coroutines
Title
# coroutines
e

elizarov

06/12/2017, 9:00 PM
@groostav The documentation on
isDispatchNeeded
gives an answer: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-coroutine-dispatcher/is-dispatch-needed.html There are lots of good explanations on the web as to why in JS world it is a standard to always schedule execution of async operations for later, as opposed to executing them immediately on stack (in short, it causes lots of subtle problems down the road that do not worth minor performance improvement it gives)
g

groostav

06/15/2017, 5:18 AM
I'm googling around in C# coroutines and interestingly enough one of the bigger use cases seems to be with unity (the game engine)
5 Views