safely

inline suspend fun <T> safely(onException: ExceptionHandler<T>, block: suspend () -> T): T(source)

Calls runCatchingSafely and getting the result via Result.getOrThrow

See also


inline suspend fun <T> safely(block: suspend () -> T): T(source)

Calls safely with passing of defaultSafelyExceptionHandler as onException

See also


inline suspend fun <T, R> R.safely(block: suspend R.() -> T): T(source)