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

Function service

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

Source from the content-addressed store, hash-verified

409 * @since 4.0.0
410 */
411export const service = <I, S>(service: Context.Key<I, S>): Stream<S, never, I> => fromEffect(Effect.service(service))
412
413/**
414 * Optionally accesses a service from the context and emits the result as a

Callers 1

defineFunction · 0.50

Calls 1

fromEffectFunction · 0.70

Tested by 1

defineFunction · 0.40