Package: effect
Module: Effect
Executes an effect only if the condition is false.
See
unlessEffect for a version that allows the condition to be an effect.when for a version that executes the effect when the condition is true.Signature
declare const unless: { (condition: LazyArg<boolean>): <A, E, R>(self: Effect<A, E, R>) => Effect<Option.Option<A>, E, R>; <A, E, R>(self: Effect<A, E, R>, condition: LazyArg<boolean>): Effect<Option.Option<A>, E, R>; }
Since v2.0.0