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

Function withValue

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

Source from the content-addressed store, hash-verified

12const env = GenericTag<"context", number>("context")
13
14const withValue = (value: string) => Effect.locallyWith(ref, List.prepend(value))
15
16const logRef = (msg: string) =>
17 Effect.gen(function*() {

Callers 1

scope-ref.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected