UNPKG

redis-semaphore

Version:

Distributed mutex and semaphore based on Redis

12 lines (9 loc) 236 B
import LostLockError from '../src/errors/LostLockError' export const defaultTimeoutOptions = { lockTimeout: 10000, acquireTimeout: 10000, retryInterval: 10 } export function defaultOnLockLost(err: LostLockError) { throw err }