mortice
    Preparing search index...

    Interface MorticeOptions

    interface MorticeOptions {
        autoFinalize?: boolean;
        concurrency?: number;
        name?: string;
        singleProcess?: boolean;
    }
    Index

    Properties

    autoFinalize?: boolean

    If true, the lock will be finalized after the last reader/writer releases it.

    false
    
    concurrency?: number

    How many read operations are executed concurrently

    Infinity
    
    name?: string

    An optional name for the lock

    singleProcess?: boolean

    By default the the lock will be held on the main thread and child/worker processes will coordinate to share the lock.

    Set this to true if each main/child/worker thread should maintain it's own lock with no coordination between them.

    false