io.paymenthighway.sdk.util / Result / of

of

inline fun <V> of(function: () -> V): Result<V, Exception>

Result built from the result of the function

Parameters

function - returns the success value of the type V, otherwise throws an exception