— it just feels higher-level API and if context doesn’t have a job it will create one so I’ll be sure to call
ensureActive
in a scope with a job. In fact thinking of it I don’t know why every suspend fun does not get an implicit CoroutineScope with Job as a receiver by compiler magic but that’s another topic
e
ephemient
12/06/2022, 7:16 PM
because not all suspend funs are for kotlinx.coroutines