MCPcopy Create free account
hub / github.com/effect-app/libs / provideService

Function provideService

repos/effect/packages/effect/src/internal/effect.ts:2117–2123  ·  view source on GitHub ↗
(this: any)

Source from the content-addressed store, hash-verified

2115 return Context.add(s, service, next)
2116 })
2117)
2118
2119/** @internal */
2120export const updateServiceScoped = <I, A>(
2121 service: Context.Key<I, A>,
2122 update: (value: A) => A,
2123 options?: {
2124 readonly reset?: ((original: A, updated: A, current: A) => A) | undefined
2125 } | undefined
2126): Effect.Effect<void, never, I | Scope.Scope> =>

Callers 3

Effect.tsFile · 0.85
Channel.tsFile · 0.85
effect.tsFile · 0.85

Calls 1

provideServiceImplFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…