(thisArg, method, args)
| 303 | } |
| 304 | |
| 305 | push(thisArg, method, args) { |
| 306 | const {promise, resolve, reject} = Promise.withResolvers(); |
| 307 | this.queue.push({promise, resolve, reject, thisArg, method, args}); |
| 308 | if (this.queue.length === 1) { |
| 309 | this._next(); |
| 310 | } |
| 311 | return promise; |
| 312 | } |
| 313 | |
| 314 | _next() { |
| 315 | if (this.queue.length === 0) { |