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

Function make

packages/effect/test/Effect/interruption.test.ts:263–269  ·  view source on GitHub ↗
(deferred: Deferred.Deferred<void, never>)

Source from the content-addressed store, hash-verified

261 const latch1 = yield* (Deferred.make<void>())
262 const latch2 = yield* (Deferred.make<void>())
263 const make = (deferred: Deferred.Deferred<void, never>) => {
264 return pipe(
265 Deferred.succeed(deferred, void 0),
266 Effect.zipRight(Effect.never),
267 Effect.onInterrupt(() => Ref.update(ref, (n) => n + 1))
268 )
269 }
270 const raced = yield* pipe(make(latch1), Effect.race(make(latch2)), Effect.fork)
271 yield* pipe(Deferred.await(latch1), Effect.zipRight(Deferred.await(latch2)))
272 yield* (Fiber.interrupt(raced))

Callers 1

Calls 2

updateMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…