LockStrategy
Defined in: src/lock.ts:125
Runs the callback only while holding a lease on key: a mutex across executions (and processes, with a shared store).
Type Parameters
Section titled “Type Parameters”T
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LockStrategy<
T>(options,source):LockStrategy<T>
Defined in: src/lock.ts:132
Parameters
Section titled “Parameters”options
Section titled “options”source
Section titled “source”Returns
Section titled “Returns”LockStrategy<T>
Methods
Section titled “Methods”execute()
Section titled “execute()”execute(
next,context):Promise<Outcome<T,unknown>>
Defined in: src/lock.ts:145
Parameters
Section titled “Parameters”Next<T>
context
Section titled “context”Returns
Section titled “Returns”Promise<Outcome<T, unknown>>