interface IQueueimport { type IQueue } from "https://deno.land/x/carriageway@v0.8.1/src/types.ts"; Type ParametersTRPropertiesreadonlypending: numberNumber of active items running now readonlywaiting: numberNumber of queued items waiting to run readonlylength: numberTotal number of active and queued items concurrency: numberMaximum number of active items running at once throttle: numberMinimum number of milliseconds between start of each item Methodshas(item: T): booleanReturns true if item is queued (active or waiting) get(item: T): Promise<R> | undefinedReturns the deferred promise for the item append(item: T, callback: QueueCallback<T, R>): Promise<R>Append an item to the queue prepend(item: T, callback: QueueCallback<T, R>): Promise<R>Prepend an item to the queue sort(compare: (a: T, b: T) => number): voidPrioritize the order of queued items clear(): voidClear the queue