AsyncLockOptions interface
Describes the options that can be provided to create an async lock.
Properties
| domain |
Whether lock can reenter in the same domain. Default is: false. |
| max |
Maximum pending tasks. Default is: 1000. |
| Promise | Your implementation of the promise. Default is: global promise. |
| timeout | The max timeout. Default is: 0 (never timeout). |
Property Details
domainReentrant
Whether lock can reenter in the same domain. Default is: false.
domainReentrant?: boolean
Property Value
boolean
maxPending
Maximum pending tasks. Default is: 1000.
maxPending?: number
Property Value
number
Promise
Your implementation of the promise. Default is: global promise.
Promise?: any
Property Value
any
timeout
The max timeout. Default is: 0 (never timeout).
timeout?: number
Property Value
number