(queue: Queue.Dequeue<Chunk.Chunk<A>>, options?: {
readonly shutdown?: boolean | undefined
})
| 3074 | |
| 3075 | /** @internal */ |
| 3076 | export const fromChunkQueue = <A>(queue: Queue.Dequeue<Chunk.Chunk<A>>, options?: { |
| 3077 | readonly shutdown?: boolean | undefined |
| 3078 | }): Stream.Stream<A> => |
| 3079 | pipe( |
| 3080 | Queue.take(queue), |
| 3081 | Effect.catchAllCause((cause) => |
| 3082 | pipe( |
| 3083 | Queue.isShutdown(queue), |
| 3084 | Effect.flatMap((isShutdown) => |
| 3085 | isShutdown && Cause.isInterrupted(cause) ? |
| 3086 | pull.end() : |
| 3087 | pull.failCause(cause) |
| 3088 | ) |
| 3089 | ) |
| 3090 | ), |
| 3091 | repeatEffectChunkOption, |
| 3092 | options?.shutdown ? ensuring(Queue.shutdown(queue)) : identity |
| 3093 | ) |
| 3094 | |
| 3095 | /** @internal */ |
| 3096 | export const fromChunks = <A>( |
nothing calls this directly
no test coverage detected