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

Function fromTPubSub

packages/effect/src/internal/stream.ts:3149–3154  ·  view source on GitHub ↗
(pubsub: TPubSub.TPubSub<A>)

Source from the content-addressed store, hash-verified

3147
3148/** @internal */
3149export const fromTPubSub = <A>(pubsub: TPubSub.TPubSub<A>): Stream.Stream<A> => {
3150 return unwrapScoped(Effect.map(
3151 TPubSub.subscribeScoped(pubsub),
3152 (queue) => fromTQueue(queue)
3153 ))
3154}
3155
3156/** @internal */
3157export const fromIterable = <A>(iterable: Iterable<A>): Stream.Stream<A> =>

Callers

nothing calls this directly

Calls 3

fromTQueueFunction · 0.85
unwrapScopedFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected