Skip to content

Commit 15a52d8

Browse files
Expose multi errors and tryLock() function
1 parent f6fbdb2 commit 15a52d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export type { TimedLockable } from "./types/timedLockable";
99

1010
// Errors
1111
export { LockError } from "./errors/lockError";
12+
export { MultiLockError } from "./errors/multiLockError";
13+
export { MultiUnlockError } from "./errors/multiUnlockError";
1214
export { OwnershipError } from "./errors/ownershipError";
1315
export { RelockError } from "./errors/relockError";
1416
export { TimeoutError } from "./errors/timeoutError";
@@ -24,6 +26,7 @@ export { TimedMutex } from "./mutex/timedMutex";
2426
// Mutex Management
2527
export { lockGuard } from "./utils/lockGuard";
2628
export { SharedLock } from "./utils/sharedLock";
29+
export { tryLock } from "./utils/tryLock";
2730

2831
// Condition Variables
2932
export { ConditionVariable } from "./conditionVariable";

0 commit comments

Comments
 (0)