ServiceScope
Process-lifetime scope owned by the mesh service, distinct from ApplicationCoroutineScope and from the DataStore scope. Backed by a SupervisorJob so one failed child does not tear down the rest of the service.
A type rather than a Koin qualifier so the compiler tells it apart from every other CoroutineScope.
Functions
Link copied to clipboard
Presents an existing scope as ServiceScope; the wrapper adds nothing but identity.
Link copied to clipboard
fun CoroutineScope.handledLaunch(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job
Launches a new coroutine with a central CoroutineExceptionHandler that reports errors to Exceptions.