* @since 2.0.0
()
| 204 | * @since 2.0.0 |
| 205 | */ |
| 206 | flush() { |
| 207 | while (this.tasks.buckets.length > 0) { |
| 208 | const tasks = this.tasks.buckets |
| 209 | this.tasks.buckets = [] |
| 210 | for (const [_, toRun] of tasks) { |
| 211 | for (let i = 0; i < toRun.length; i++) { |
| 212 | toRun[i]() |
| 213 | } |
| 214 | } |
| 215 | } |
| 216 | this.deferred = true |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | /** |
no outgoing calls
no test coverage detected