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

Method contextEffectOption

packages/effect/src/LayerMap.ts:109–109  ·  view source on GitHub ↗

* Retains and returns the context for a key only when it is currently cached. * * **Details** * * `Option.none` means no entry is currently cached or the `LayerMap` is closed; * no layer is built for a missing key. An existing in-flight entry is awaited. * * @since 4.0.0

(key: K)

Source from the content-addressed store, hash-verified

107 * @since 4.0.0
108 */
109 contextEffectOption(key: K): Effect.Effect<Option.Option<Context.Context<I>>, E, Scope.Scope>
110
111 /**
112 * Invalidates the resource associated with the key.

Callers 2

LayerMap.test.tsFile · 0.80
ServiceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected