aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/vendor/async-mutex/errors.ts
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-08-20 12:46:01 +0000
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-08-20 12:46:01 +0000
commit80d0342636056bc839517b64fd11708abea70237 (patch)
tree99c2505b924ab47bc21b215a43cdac2c37c9facf /src/lib/vendor/async-mutex/errors.ts
parentdddef149aea597a145e3717b2c461b251e0f6a8d (diff)
downloadcrunched-80d0342636056bc839517b64fd11708abea70237.tar.gz
crunched-80d0342636056bc839517b64fd11708abea70237.tar.bz2
crunched-80d0342636056bc839517b64fd11708abea70237.tar.lz
crunched-80d0342636056bc839517b64fd11708abea70237.zip

feat: locks :3

Diffstat (limited to 'src/lib/vendor/async-mutex/errors.ts')
-rw-r--r--src/lib/vendor/async-mutex/errors.ts5
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');