MCPcopy Index your code
hub / github.com/Effect-TS/effect / cond

Function cond

packages/effect/test/Pool.test.ts:176–176  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

174 it.scoped("compositional retry", () =>
175 Effect.gen(function*() {
176 const cond = (i: number) => (i <= 10 ? Effect.fail(i) : Effect.succeed(i))
177 const count = yield* Ref.make(0)
178 const get = Effect.acquireRelease(
179 Ref.updateAndGet(count, (n) => n + 1).pipe(

Callers

nothing calls this directly

Calls 1

failMethod · 0.65

Tested by

no test coverage detected