toEither

inline fun <L, R> toEither(failure: (ResourceEither.Failure<F, S>) -> L, success: (ResourceEither.Success<S>) -> R): Either<L, R>