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

Function event

packages/effect/test/Channel/finalization.test.ts:27–27  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

25 Effect.gen(function*() {
26 const ref = yield* (Ref.make<ReadonlyArray<string>>([]))
27 const event = (label: string) => Ref.update(ref, (array) => [...array, label])
28 const channel = pipe(
29 Channel.fromEffect(event("Acquire1")),
30 Channel.ensuring(event("Release11")),

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected