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

Function succeedContext

packages/effect/src/Layer.ts:864–865  ·  view source on GitHub ↗
(context: Context.Context<A>)

Source from the content-addressed store, hash-verified

862 * @since 2.0.0
863 */
864export const succeedContext = <A>(context: Context.Context<A>): Layer<A> =>
865 fromBuildUnsafe(constant(internalEffect.succeed(context)))
866
867/**
868 * An empty layer that provides no services, cannot fail, has no requirements,

Callers 2

Layer.tsFile · 0.85
parentSpanFunction · 0.85

Calls 3

constantFunction · 0.90
fromBuildUnsafeFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected