Unique key for lock shared across options.scope
No guaranteed fairness, but measures to minimize fairness issues in place.
Unique key for lock shared across options.scope
.
Number of concurrent access
Fits most use cases. Acquires the lock, runs the provided callback, and then releases the lock.
For workflows that span multiple skills, be sure to pass LockScope.Organization
as the scope argument for LockOptions.
Unique key for lock shared across options.scope
A function containing the callback to run exclusively
A promise that resolves with the result of the callback, or rejects if an error occurs
Generated using TypeDoc
Powers to provide synchronization primitives for Andi skills across concurrent async processes, replicas, and beyond. These primitives are distributed and can be shared across skill versions or across all skills in an organization.
Mutexes help exclusive access to a shared resource.
Semaphores help with allowing shared access to a shared resource, up to a defined limit.