You can even keep a reference to that lifetime obj...
# coroutines
e
You can even keep a reference to that lifetime object to cancel it later manually, if needed:
Copy code
val lifetime = Lifetime() // fresh lifetime for my background coroutine
runRuspending(lifetime) { ... } // fork-off some background process 
// when you don't need it anymore
lifetime.cancel() // will kill that coroutine and all coroutines it had forked, too