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

Function fromTPubSub

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

Source from the content-addressed store, hash-verified

3109
3110/** @internal */
3111export const fromTPubSub = <A>(pubsub: TPubSub.TPubSub<A>): Stream.Stream<A> => {
3112 return unwrapScoped(Effect.map(
3113 TPubSub.subscribeScoped(pubsub),
3114 (queue) => fromTQueue(queue)
3115 ))
3116}
3117
3118/** @internal */
3119export 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