fold

inline fun <T, R> AdaptyResult<T>.fold(onSuccess: (T) -> R, onError: (AdaptyError) -> R): R