()
| 367 | } |
| 368 | |
| 369 | function createTaskQueue(): (task: Task) => void { |
| 370 | let chain = Promise.resolve(); |
| 371 | return (task: Task) => { |
| 372 | chain = chain |
| 373 | .then(() => task()) |
| 374 | .catch((error) => { |
| 375 | logWatchError(error); |
| 376 | }); |
| 377 | }; |
| 378 | } |
| 379 | |
| 380 | async function waitForAbort( |
| 381 | watcher: chokidar.FSWatcher, |
no test coverage detected