UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

12 lines (11 loc) 396 B
// ets_tracing: off import { yieldNow } from "./core.mjs"; import { orElse_ } from "./orElse.mjs"; import { zipRight_ } from "./zips.mjs"; /** * Returns an effect that ignores errors and runs repeatedly until it eventually succeeds. */ export function eventually(fa, __trace) { return orElse_(fa, () => zipRight_(yieldNow, eventually(fa)), __trace); } //# sourceMappingURL=eventually.mjs.map