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

Function fromPubSub

packages/effect/src/Sink.ts:538–540  ·  view source on GitHub ↗
(
  pubsub: PubSub.PubSub<A>
)

Source from the content-addressed store, hash-verified

536 * @since 2.0.0
537 */
538export const fromPubSub = <A>(
539 pubsub: PubSub.PubSub<A>
540): Sink<void, A> => forEachArray((arr) => PubSub.publishAll(pubsub, arr))
541
542/**
543 * A sink that immediately ends with the specified value.

Callers

nothing calls this directly

Calls 2

forEachArrayFunction · 0.85
publishAllMethod · 0.65

Tested by

no test coverage detected