childJobScope

fun CoroutineScope.childJobScope(context: CoroutineContext = EmptyCoroutineContext): CoroutineScope

Creates a new CoroutineScope with a Job that is a child of the current scope's job. This allows for launching coroutines that are cancelled when the parent scope is cancelled.