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

Function serviceOption

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

Source from the content-addressed store, hash-verified

410 * @since 4.0.0
411 */
412export const serviceOption = <I, S>(service: Context.Key<I, S>): Stream<Option.Option<S>> =>
413 fromEffect(Effect.serviceOption(service))
414
415/**
416 * Creates a stream that runs the effect and emits no elements.

Callers

nothing calls this directly

Calls 1

fromEffectFunction · 0.70

Tested by

no test coverage detected