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

Dalinar

02/04/2019, 12:43 PM
I understand that `suspend fun`s can be suspended... what happens when it (the suspend fun) calls a non-suspend
fun
? can the code in that
fun
also be suspended?
s

streetsofboston

02/04/2019, 12:59 PM
No. Only
suspend
funs can call other suspending functions (be suspended)
👍 1
d

Dalinar

02/04/2019, 12:59 PM
great, just wanted to make sure
s

streetsofboston

02/04/2019, 1:00 PM
Non-suspend funs can be blocking, though, but not suspending.
d

Dalinar

02/04/2019, 1:01 PM
sure blocking is ok
5 Views