(rejectReason: any, ti: TransitionInstruction)
| 595 | } |
| 596 | |
| 597 | private fireError(rejectReason: any, ti: TransitionInstruction) { |
| 598 | if (ti.done) { |
| 599 | ti.done(false, false, rejectReason); |
| 600 | } |
| 601 | if (ti.reject && !this.destroyed) { |
| 602 | ti.reject(rejectReason); |
| 603 | } else { |
| 604 | ti.resolve!(false); |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | /** |
| 609 | * Consumes the next transition in the queue. |