(req: T, reason: any)
| 46 | } |
| 47 | |
| 48 | reject(req: T, reason: any) { |
| 49 | const entry = this.pending.get(req); |
| 50 | if (entry) { |
| 51 | this.pending.delete(req); |
| 52 | entry.reject(reason); |
| 53 | } |
| 54 | |
| 55 | return flushMicrotasks(); |
| 56 | } |
| 57 | |
| 58 | async flush(): Promise<void> { |
| 59 | const allPending = Array.from(this.pending.values()).map((pending) => pending.promise); |
no test coverage detected
searching dependent graphs…