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

mben

04/18/2019, 1:29 PM
Hello from what i understood, multiplatform support of coroutine only works when use in main thread? so when i use ktor, the api call is done in main thread and it doesn't freeze the UI due to suspend function use?
👍 1
a

ansman

04/18/2019, 8:40 PM
@Mohammadsss1 Only kotlin native has this limitation so it depends on what your multiplatform targets. Javascript is also single threaded of course because it only has one thread
2 Views