MCPcopy Index your code
hub / github.com/Effect-TS/effect / fromPubSub

Function fromPubSub

packages/effect/src/internal/channel.ts:684–687  ·  view source on GitHub ↗
(
  pubsub: PubSub.PubSub<Either.Either<Elem, Exit.Exit<Done, Err>>>
)

Source from the content-addressed store, hash-verified

682
683/** @internal */
684export const fromPubSub = <Done, Err, Elem>(
685 pubsub: PubSub.PubSub<Either.Either<Elem, Exit.Exit<Done, Err>>>
686): Channel.Channel<Elem, unknown, Err, unknown, Done, unknown> =>
687 unwrapScoped(Effect.map(PubSub.subscribe(pubsub), fromQueue))
688
689/** @internal */
690export const fromPubSubScoped = <Done, Err, Elem>(

Callers

nothing calls this directly

Calls 3

unwrapScopedFunction · 0.70
mapMethod · 0.65
subscribeMethod · 0.65

Tested by

no test coverage detected