guardedDo

fun guardedDo(op: SimpleCompletionHandler.Companion.GuardHelper<V>.() -> Unit)

Perform the specified I/O operation, guarded by a try/catch that invokes the same failure handler as the operation itself would in the event of an asynchronous failure.

Parameters

op

The I/O operation.