diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-08-26 17:19:36 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-08-26 17:45:20 +0200 |
commit | d510b07aededd59443e877c4e7c7b6e2b9822dfe (patch) | |
tree | 64e4675ac200d4d85f5818472acd908666758969 /subprojects/frontend/src/utils/CancelledError.ts | |
parent | refactor(frontend): simplify UpdateService further (diff) | |
download | refinery-d510b07aededd59443e877c4e7c7b6e2b9822dfe.tar.gz refinery-d510b07aededd59443e877c4e7c7b6e2b9822dfe.tar.zst refinery-d510b07aededd59443e877c4e7c7b6e2b9822dfe.zip |
refactor(frontend): custom mutex implementation
Lets us track priorities of tasks without cancellation.
Diffstat (limited to 'subprojects/frontend/src/utils/CancelledError.ts')
-rw-r--r-- | subprojects/frontend/src/utils/CancelledError.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ | |||
1 | export default class CancelledError extends Error { | ||
2 | constructor() { | ||
3 | super('Operation cancelled'); | ||
4 | } | ||
5 | } | ||