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

Function fromSubscription

packages/effect/src/Stream.ts:1344–1345  ·  view source on GitHub ↗
(pubsub: PubSub.Subscription<A>)

Source from the content-addressed store, hash-verified

1342 * @since 4.0.0
1343 */
1344export const fromSubscription = <A>(pubsub: PubSub.Subscription<A>): Stream<A> =>
1345 fromChannel(Channel.fromSubscriptionArray(pubsub))
1346
1347/**
1348 * Interface representing an event listener target.

Callers

nothing calls this directly

Calls 1

fromChannelFunction · 0.70

Tested by

no test coverage detected