From d510b07aededd59443e877c4e7c7b6e2b9822dfe Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 26 Aug 2022 17:19:36 +0200 Subject: refactor(frontend): custom mutex implementation Lets us track priorities of tasks without cancellation. --- subprojects/frontend/src/utils/CancelledError.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 subprojects/frontend/src/utils/CancelledError.ts (limited to 'subprojects/frontend/src/utils/CancelledError.ts') diff --git a/subprojects/frontend/src/utils/CancelledError.ts b/subprojects/frontend/src/utils/CancelledError.ts new file mode 100644 index 00000000..8d3e55d8 --- /dev/null +++ b/subprojects/frontend/src/utils/CancelledError.ts @@ -0,0 +1,5 @@ +export default class CancelledError extends Error { + constructor() { + super('Operation cancelled'); + } +} -- cgit v1.2.3-54-g00ecf