it
    Preparing search index...

    Interface QueueInit<JobReturnType, JobOptions>

    interface QueueInit<
        JobReturnType,
        JobOptions extends AbortOptions = AbortOptions,
    > {
        autoStart?: boolean;
        concurrency?: number;
        maxSize?: number;
        sort?: Comparator<Job<JobOptions, JobReturnType>>;
    }

    Type Parameters

    Index

    Properties

    autoStart?: boolean

    If false, .start will need to be called to start processing jobs

    true
    
    concurrency?: number

    Concurrency limit.

    Minimum: 1.

    Infinity
    
    maxSize?: number

    If the queue size grows to larger than this number the promise returned from the add function will reject

    Infinity
    

    An optional function that will sort the queue after a job has been added