(max: number)
| 280 | } |
| 281 | |
| 282 | takeUpTo(max: number): Effect.Effect<Chunk.Chunk<A>> { |
| 283 | return core.suspend(() => |
| 284 | MutableRef.get(this.shutdownFlag) |
| 285 | ? core.interrupt |
| 286 | : core.sync(() => { |
| 287 | const values = this.queue.pollUpTo(max) |
| 288 | this.strategy.unsafeOnQueueEmptySpace(this.queue, this.takers) |
| 289 | return Chunk.fromIterable(values) |
| 290 | }) |
| 291 | ) |
| 292 | } |
| 293 | |
| 294 | takeBetween(min: number, max: number): Effect.Effect<Chunk.Chunk<A>> { |
| 295 | return core.suspend(() => |
nothing calls this directly
no test coverage detected