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

kirillrakhman

11/20/2017, 8:52 AM
I was wondering, what's the current way to create a coroutine on JS? there are no builders if I'm not mistaken. Should I write my own oder can I just get away with making my
main
function
suspend
?
k

konsoletyper

11/20/2017, 8:56 AM
You can create your own builder, it's quite simple
k

kirillrakhman

11/20/2017, 8:59 AM
thanks
g

gildor

11/20/2017, 9:04 AM
btw there is an issue about support of suspend main functions, vote up 👍 https://youtrack.jetbrains.com/issue/KT-17679
2 Views