toEither

suspend fun <Error, A> Effect<Error, A>.toEither(): Either<Error, A>(source)

Run the Effect by returning Either.Right of A, or Either.Left of Error.


Run the EagerEffect by returning Either.Right of A, or Either.Left of Error.