()
| 307 | } |
| 308 | |
| 309 | private async lock() { |
| 310 | const p = this.waitPromise; |
| 311 | let resolve!: () => void; |
| 312 | this.waitPromise = new Promise((r) => (resolve = r)); |
| 313 | |
| 314 | if (p !== undefined) { |
| 315 | await p; |
| 316 | } |
| 317 | return resolve; |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Executes the beforeLeave hook of the source route and the beforeEnter hook of the target route if they exist. |
no outgoing calls
no test coverage detected