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

marcinmoskala

11/17/2017, 7:33 AM
Is there any road map when coroutins will be allowed in common modules?
g

gildor

11/17/2017, 10:12 AM
So coroutines not allowed in common modules? You cannot have
expect suspend fun
or just
suspend fun
?
m

marcinmoskala

11/17/2017, 11:13 AM
I can have suspend modifier in common modules but i believe that there is no coroutines library that can be used in common modules.
g

gildor

11/17/2017, 12:04 PM
Yes, but you can provide platform specific implementation, for js you probably need only wrapper for Promise and have suspend API
2 Views