()
| 17 | properties = {queue: this.queue, flush: this.flush.bind(this)}; |
| 18 | |
| 19 | flush() { |
| 20 | while (this.queue.length) { |
| 21 | const task = this.queue.shift(); |
| 22 | task!.invoke(); |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | onScheduleTask(delegate: ZoneDelegate, currentZone: Zone, targetZone: Zone, task: Task): any { |
| 27 | this.queue.push(task as MicroTask); |
no test coverage detected