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

Function service

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

Source from the content-addressed store, hash-verified

368 * @since 4.0.0
369 */
370export const service = <I, S>(service: Context.Key<I, S>): Stream<S, never, I> => fromEffect(Effect.service(service))
371
372/**
373 * Optionally accesses a service from the context and emits the result as a

Callers

nothing calls this directly

Calls 1

fromEffectFunction · 0.70

Tested by

no test coverage detected