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

Function unsafeGetReference

packages/effect/src/internal/context.ts:239–241  ·  view source on GitHub ↗
(self: C.Context<Services>, tag: C.Reference<I, S>)

Source from the content-addressed store, hash-verified

237
238/** @internal */
239export const unsafeGetReference = <Services, I, S>(self: C.Context<Services>, tag: C.Reference<I, S>): S => {
240 return self.unsafeMap.has(tag.key) ? self.unsafeMap.get(tag.key) : getDefaultValue(tag)
241}
242
243/** @internal */
244export const unsafeGet = dual<

Callers

nothing calls this directly

Calls 2

getDefaultValueFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…