handledLaunch

fun CoroutineScope.handledLaunch(context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job(source)

Launches a new coroutine with a central CoroutineExceptionHandler that reports errors to Exceptions.

Return

The launched Job.

Parameters

context

Additional to CoroutineExceptionHandler context.

start

Coroutine start option.

block

The coroutine code block.