Join Slack
Powered by
<@U8X1UM66N> commented on <@U8X1UM66N>’s file <htt...
# coroutines
u
user
03/11/2018, 11:54 AM
@Jonathan
commented on
@Jonathan
’s file
https://kotlinlang.slack.com/files/U8X1UM66N/F9N3LQYA1/suspend_handleaction__.kt
: You can run non-suspending function in coroutines. So yes you can wrap in it runBlocking, even if it doesn't suspend. runBlocking use
EmptyCoroutineContext
by default, you may use another context if you want.
suspend_handleAction__.kt
Open in Slack
Previous
Next