(item: T)
| 85 | } |
| 86 | |
| 87 | push(item: T) { |
| 88 | if (this.closed) return |
| 89 | const resolve = this.resolvers.shift() |
| 90 | if (resolve) { |
| 91 | resolve({ value: item, done: false }) |
| 92 | return |
| 93 | } |
| 94 | this.items.push(item) |
| 95 | } |
| 96 | |
| 97 | close() { |
| 98 | if (this.closed) return |
no outgoing calls