MCPcopy Index your code
hub / github.com/Effect-TS/effect / provideContext

Function provideContext

packages/ai/ai/src/Chat.ts:332–333  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

330 const semaphore = yield* Effect.makeSemaphore(1)
331
332 const provideContext = <A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>
333 Effect.mapInputContext(effect, (input) => Context.merge(context, input))
334 const provideContextStream = <A, E, R>(stream: Stream.Stream<A, E, R>): Stream.Stream<A, E, R> =>
335 Stream.mapInputContext(stream, (input) => Context.merge(context, input))
336

Callers 5

contextFromEffectFunction · 0.85
contextFromServicesFunction · 0.85
core.tsFile · 0.85
stream.tsFile · 0.85
stm.tsFile · 0.85

Calls 1

mergeMethod · 0.80

Tested by

no test coverage detected