Functions Similar to coroutineScope

Learn about more functions that behave like coroutineScope.

supervisorScope

The supervisorScope function also behaves like coroutineScope—it creates a CoroutineScope that inherits from the outer scope and calls the specified suspend block. The difference is that it overrides the context’s Job with SupervisorJob, so it’s not canceled when a child raises an exception.

Get hands-on with 1400+ tech skills courses.