NestKit

LockOptions

interface

Options for acquiring an advisory lock.

Properties

Name Type Description
duration number Duration of the lock in milliseconds.
key string Key to lock on.
onAccept `() => void Promise`
onReject? `(error: unknown) => void Promise`