import * as tsplus_module_1 from "@effect/core/stm/STM/operations/unit";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/retry";
import * as tsplus_module_3 from "@effect/core/stm/STM/operations/suspend";
/**
 * Checks the condition, and if it's true, returns unit, otherwise, retries.
 *
 * @tsplus static ets/STM/Ops check
 */

export function check(predicate) {
  return tsplus_module_3.suspend(() => predicate() ? tsplus_module_1.unit_ : tsplus_module_2.retry);
}
//# sourceMappingURL=check.mjs.map