Documentation
    Preparing search index...

    Interface LockOptions

    Options for the lock option.

    interface LockOptions {
        stale?: number;
        timeout?: number;
    }
    Index
    stale?: number

    Age after which a lock is considered left behind by a killed process and removed, in milliseconds. A lock whose process is gone is removed right away.

    10000
    
    timeout?: number

    How long a write waits for another process to release the lock before throwing a ConfError with code ERR_CONF_LOCKED, in milliseconds.

    1000