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

Olekss

08/20/2018, 12:32 PM
hmm do I understand correctly that coroutines is very good for gaming Like Each object in the game can be represented by coroutine running in infinite loop and each loop ends with "yield" and you can have like zillion of sprites moving on the same shared thread and be sure that kotlin itself will fairly deal with state changes (given I yield)
e

elizarov

08/20/2018, 1:38 PM
Yes. That is why games are usually scripted with languages like Lua that support coroutines.
3 Views