(bucket: string)
| 42 | } |
| 43 | |
| 44 | private execute(bucket: string): void { |
| 45 | const queue = this.queues[bucket]; |
| 46 | if (!queue) { |
| 47 | return; |
| 48 | } |
| 49 | const { length } = queue; |
| 50 | if (!length) { |
| 51 | return; |
| 52 | } |
| 53 | debug("send %d commands in %s queue", length, bucket); |
| 54 | |
| 55 | this.queues[bucket] = null; |
| 56 | while (queue.length > 0) { |
| 57 | queue.shift()(); |
| 58 | } |
| 59 | } |
| 60 | } |
no outgoing calls
no test coverage detected