Companion

object Companion

Functions

Link copied to clipboard
inline fun <T> on(body: () -> T): Try<T>

Executes the given block of code and returns a Success capturing the result, or a Failure if a Throwable is thrown.