effect-io-ai

Package: effect
Module: Stream

Stream.runIntoPubSubScoped

Like Stream.runIntoPubSub, but provides the result as a scoped effect to allow for scope composition.

Signature

declare const runIntoPubSubScoped: { <A, E>(pubsub: PubSub.PubSub<Take.Take<A, E>>): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, Scope.Scope | R>; <A, E, R>(self: Stream<A, E, R>, pubsub: PubSub.PubSub<Take.Take<A, E>>): Effect.Effect<void, never, Scope.Scope | R>; }

Source

Since v2.0.0