/** * @tsplus static effect/core/stm/TDeferred.Aspects fail * @tsplus pipeable effect/core/stm/TDeferred fail */ export function fail(error: E) { return (self: TDeferred): STM => self.done( Either.left(error) ) }