MCPcopy
hub / github.com/Effect-TS/effect / unsafePollAllQueue

Function unsafePollAllQueue

packages/effect/src/internal/pubsub.ts:1305–1307  ·  view source on GitHub ↗
(queue: MutableQueue.MutableQueue<A>)

Source from the content-addressed store, hash-verified

1303
1304/** @internal */
1305const unsafePollAllQueue = <A>(queue: MutableQueue.MutableQueue<A>): Chunk.Chunk<A> => {
1306 return pipe(queue, MutableQueue.pollUpTo(Number.POSITIVE_INFINITY))
1307}
1308
1309/** @internal */
1310const unsafePollAllSubscription = <A>(subscription: Subscription<A>): Chunk.Chunk<A> => {

Callers 6

shutdownMethod · 0.85
unsafeRemoveFunction · 0.85
shutdownMethod · 0.85
unsafeRemoveMethod · 0.85

Calls 2

pipeFunction · 0.70
pollUpToMethod · 0.65

Tested by

no test coverage detected