toEither

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

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.