@chip/cstd - v0.0.8
    Preparing search index...

    Function createQueue

    • Create a new job queue.

      Type Parameters

      • T

        The type of the job data.

      • K

        The type of the completed job result data.

      Parameters

      • initialJobs: T[] = []

        Optional array of initial jobs to populate the queue.

      • OptionalidFunction: () => string

        Optional function to generate unique job IDs. If not provided, an incrementing ID is used.

      Returns Queue<T, K>

      A new Queue instance.