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

Function runIn

packages/effect/src/graphql/GraphQLResolver.ts:680–681  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, any>, context: Context.Context<any>)

Source from the content-addressed store, hash-verified

678// Replaces, rather than merges into, the batch fiber's context, which may
679// belong to a lookup with other services or `Context.Reference` values.
680const runIn = <A, E>(effect: Effect.Effect<A, E, any>, context: Context.Context<any>): Effect.Effect<A, E> =>
681 Effect.updateContext(effect, (_: Context.Context<never>) => context)
682
683// The caller's span when it queued a lookup. A batch fiber inherits it from the
684// caller that started or filled the batch, even if that caller was interrupted.

Callers 2

urlOfFunction · 0.85
makeResolverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected