scopeCatching

fun <T> scopeCatching(block: () -> T): Result<T>

Equivalent of runCatching but able to throw CancellationException to cancel parent jobs.