(promiseFn: Promise<any>)
| 49 | } |
| 50 | |
| 51 | bump(promiseFn: Promise<any>) { |
| 52 | const index = this.#queue.findIndex((item) => item.promiseFn === promiseFn) |
| 53 | |
| 54 | if (index > -1) { |
| 55 | const bumpedItem = this.#queue.splice(index, 1)[0] |
| 56 | this.#queue.unshift(bumpedItem) |
| 57 | this.#processNext(true) |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | #processNext(forced = false) { |
| 62 | if ( |
no test coverage detected