/** * Lifts an `Either` into a `STM`. * * @tsplus static effect/core/stm/STM.Ops fromEither */ export function fromEither(e: Either): STM { return STM.suspend(e.fold(STM.fail, STM.succeed)) }