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

Function context

packages/effect/src/ManagedRuntime.ts:331–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329 contextEffect: contextEffect,
330 cachedContext: undefined,
331 context() {
332 return self.cachedContext === undefined ?
333 Effect.runPromise(self.contextEffect) :
334 Promise.resolve(self.cachedContext)
335 },
336 dispose(): Promise<void> {
337 return Effect.runPromise(self.disposeEffect)
338 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected