MCPcopy Create free account
hub / github.com/Effect-TS/effect / service

Function service

packages/effect/src/internal/layer.ts:979–981  ·  view source on GitHub ↗
(
  tag: Context.Tag<I, S>
)

Source from the content-addressed store, hash-verified

977
978/** @internal */
979export const service = <I, S>(
980 tag: Context.Tag<I, S>
981): Layer.Layer<I, never, I> => fromEffect(tag, tag)
982
983/** @internal */
984export const succeed = dual<

Callers

nothing calls this directly

Calls 1

fromEffectFunction · 0.70

Tested by

no test coverage detected