diff options
feat: locks :3
Diffstat (limited to 'src/lib/vendor/async-mutex/errors.ts')
| -rw-r--r-- | src/lib/vendor/async-mutex/errors.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/vendor/async-mutex/errors.ts b/src/lib/vendor/async-mutex/errors.ts new file mode 100644 index 0000000..02e3eb0 --- /dev/null +++ b/src/lib/vendor/async-mutex/errors.ts @@ -0,0 +1,5 @@ +export const E_TIMEOUT = new Error( + 'timeout while waiting for mutex to become available' +); +export const E_ALREADY_LOCKED = new Error('mutex already locked'); +export const E_CANCELED = new Error('request for lock canceled'); |