Skip to content

Commit 0c724a7

Browse files
Add extra check for cancellation
1 parent 33ce7de commit 0c724a7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libs/parsing/index/src/lib/change-detection/change-detection.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ export async function ChangeDetectionMainThread(
155155
// wait for it to finish
156156
await Promise.all(proms);
157157

158+
// throw cancel error if we canceled
159+
cancel.throwIfCancelled();
160+
158161
/**
159162
* Get additional changes
160163
*/

0 commit comments

Comments
 (0)