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

Function serviceOption

packages/effect/src/internal/effect.ts:2061–2063  ·  view source on GitHub ↗
(
  service: Context.Key<I, S>
)

Source from the content-addressed store, hash-verified

2059
2060/** @internal */
2061export const serviceOption = <I, S>(
2062 service: Context.Key<I, S>
2063): Effect.Effect<Option.Option<S>> => withFiber((fiber) => succeed(Context.getOption(fiber.context, service)))
2064
2065/** @internal */
2066export const serviceOptional = <I, S>(

Callers

nothing calls this directly

Calls 1

succeedFunction · 0.70

Tested by

no test coverage detected