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

Function fromQueue

packages/effect/src/Stream.ts:1132–1133  ·  view source on GitHub ↗
(queue: Queue.Dequeue<A, E>)

Source from the content-addressed store, hash-verified

1130 * @since 2.0.0
1131 */
1132export const fromQueue = <A, E>(queue: Queue.Dequeue<A, E>): Stream<A, Exclude<E, Cause.Done>> =>
1133 fromChannel(Channel.fromQueueArray(queue))
1134
1135/**
1136 * Creates a stream from a subscription to a `PubSub`.

Callers 1

Stream.tsFile · 0.70

Calls 1

fromChannelFunction · 0.70

Tested by

no test coverage detected