MCPcopy Create free account
hub / github.com/effect-app/libs / fromPubSub

Function fromPubSub

repos/effect/packages/effect/src/Channel.ts:1519–1521  ·  view source on GitHub ↗
(
  pubsub: PubSub.PubSub<A>
)

Source from the content-addressed store, hash-verified

1517 * const orderChannel = Channel.fromPubSubArray(orderPubSub)
1518 *
1519 * // Transform to process each batch of orders
1520 * const processedChannel = Channel.map(orderChannel, (orderBatch) => {
1521 * const totalRevenue = orderBatch.reduce((sum, order) => sum + order.total, 0)
1522 * const customerCount = new Set(orderBatch.map((order) =>
1523 * order.customerId
1524 * )).size

Callers

nothing calls this directly

Calls 3

unwrapFunction · 0.70
mapMethod · 0.65
subscribeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…