swarthy/redis-semaphore

View on GitHub
src/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import MultiSemaphore from './RedisMultiSemaphore'
import Mutex from './RedisMutex'
import Semaphore from './RedisSemaphore'
import RedlockMultiSemaphore from './RedlockMultiSemaphore'
import RedlockMutex from './RedlockMutex'
import RedlockSemaphore from './RedlockSemaphore'
import LostLockError from './errors/LostLockError'
import TimeoutError from './errors/TimeoutError'

export { defaultTimeoutOptions } from './misc'

export {
  Mutex,
  Semaphore,
  MultiSemaphore,
  RedlockMutex,
  RedlockSemaphore,
  RedlockMultiSemaphore,
  LostLockError,
  TimeoutError
}

export type { LockLostCallback, TimeoutOptions, LockOptions } from './types'