MCPcopy
hub / github.com/Effect-TS/effect / serviceOption

Function serviceOption

packages/effect/src/Micro.ts:1853–1855  ·  view source on GitHub ↗
(
  tag: Context.Tag<I, S>
)

Source from the content-addressed store, hash-verified

1851 * @category environment
1852 */
1853export const serviceOption = <I, S>(
1854 tag: Context.Tag<I, S>
1855): Micro<Option.Option<S>> => withMicroFiber((fiber) => succeed(Context.getOption(fiber.context, tag)))
1856
1857/**
1858 * Update the Context with the given mapping function.

Callers

nothing calls this directly

Calls 2

getOptionMethod · 0.65
succeedFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…