()
| 268 | } |
| 269 | |
| 270 | get takeAll(): Effect.Effect<Chunk.Chunk<A>> { |
| 271 | return core.suspend(() => { |
| 272 | return MutableRef.get(this.shutdownFlag) |
| 273 | ? core.interrupt |
| 274 | : core.sync(() => { |
| 275 | const values = this.queue.pollUpTo(Number.POSITIVE_INFINITY) |
| 276 | this.strategy.unsafeOnQueueEmptySpace(this.queue, this.takers) |
| 277 | return Chunk.fromIterable(values) |
| 278 | }) |
| 279 | }) |
| 280 | } |
| 281 | |
| 282 | takeUpTo(max: number): Effect.Effect<Chunk.Chunk<A>> { |
| 283 | return core.suspend(() => |
nothing calls this directly
no test coverage detected