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

Function context

packages/effect/src/Context.ts:286–291  ·  view source on GitHub ↗
(
    this: Service<Identifier, Shape>,
    self: Shape
  )

Source from the content-addressed store, hash-verified

284 return self
285 },
286 context<Identifier, Shape>(
287 this: Service<Identifier, Shape>,
288 self: Shape
289 ): Context<Identifier> {
290 return make(this, self)
291 },
292 use<A, E, R>(this: Service<never, any>, f: (service: any) => Effect<A, E, R>): Effect<A, E, R> {
293 return withFiber((fiber) => f(get(fiber.context, this)))
294 },

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected