raceOrThrow
fun <Error, Result> RacingScope<Result>.raceOrThrow(handleError: RaiseHandler<Error>, context: CoroutineContext = EmptyCoroutineContext, block: suspend RaiseScope<Error>.() -> Result)
Races a coroutine block against other blocks in the racing scope. If the block raises an error, it will be handled by handleError. The block will be cancelled if another block completes first.
Parameters
context
The CoroutineContext to run the block in.
block
The coroutine block to race.