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

Function serviceOption

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

Source from the content-addressed store, hash-verified

1852 * @category environment
1853 */
1854export const serviceOption = <I, S>(
1855 tag: Context.Tag<I, S>
1856): Micro<Option.Option<S>> => withMicroFiber((fiber) => succeed(Context.getOption(fiber.context, tag)))
1857
1858/**
1859 * 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