fold
inline fun <In, Out, Error> RaiseScope<Error>.fold(block: (scope: RaiseScope<Error>) -> In, catch: (Exception) -> Out = ::rethrow, recover: (error: Error) -> Out, transform: (value: In) -> Out): Out
Executes block within this RaiseScope and maps the result using transform, recover, or catch.
On shortCircuit: calls close and applies recover.
Warning: CancellationException is not propagated. Use folding in suspend contexts.
Return
Parameters
block
The block to execute within this scope.