toEither

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

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


fun <E, A> EagerEffect<E, A>.toEither(): Either<E, A>