MCPcopy
hub / github.com/Effect-TS/effect / logRef

Function logRef

packages/effect/test/Effect/scope-ref.test.ts:16–21  ·  view source on GitHub ↗
(msg: string)

Source from the content-addressed store, hash-verified

14const withValue = (value: string) => Effect.locallyWith(ref, List.prepend(value))
15
16const logRef = (msg: string) =>
17 Effect.gen(function*() {
18 const stack = yield* FiberRef.get(ref)
19 const value = yield* env
20 yield* Effect.log(`${value} | ${msg} | ${List.toArray(stack).join(" > ")}`)
21 })
22
23describe("Effect", () => {
24 it.effect("scoped ref", () =>

Callers 1

scope-ref.test.tsFile · 0.85

Calls 3

getMethod · 0.65
logMethod · 0.65
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…