effect-io-ai

Package: effect
Module: STM

STM.flip

Flips the success and failure channels of this transactional effect. This allows you to use all methods on the error channel, possibly before flipping back.

Signature

declare const flip: <A, E, R>(self: STM<A, E, R>) => STM<E, A, R>

Source

Since v2.0.0