asEither

inline suspend fun <T> asEither(block: suspend () -> T): Either<T, Throwable>(source)