runCatchingCancellable
Runs block and wraps its outcome in a Result, keeping cancellation intact.
This is the suspend-safe counterpart of runCatching: every ordinary failure becomes Result.failure, while cancellation still propagates.
Cancellation: a CancellationException thrown by block is rethrown, never captured in the returned Result.
Runs block with this as its receiver and wraps its outcome in a Result, keeping cancellation intact.
This is the suspend-safe counterpart of the receiver form of runCatching: every ordinary failure becomes Result.failure, while cancellation still propagates.
Cancellation: a CancellationException thrown by block is rethrown, never captured in the returned Result.