PriorityOptionsWithItemSchema<T, E, R>models
Source src/WorkPool.ts:1072 lines
export type type PriorityOptionsWithItemSchema<T, E, R> = {
readonly laneCount: number;
readonly name?: string | undefined;
readonly paused?: boolean | undefined;
readonly autoStart?: boolean | undefined;
readonly concurrency?: number | undefined;
readonly rateLimit?: WorkPoolRateLimitOptions | undefined;
readonly capacity?: number | undefined;
readonly takeAlgorithm?: TakeAlgorithm | undefined;
readonly key?: ((item: T) => string) | undefined;
readonly attempts?: number | undefined;
readonly shutdownMode?: "drain" | "finishActive" | undefined;
readonly namedLanes?: Record<string, number> | undefined;
readonly defaultLevel?: number | undefined;
readonly itemSchema: Schema.Codec<...>;
readonly onFailure?: QueueOnFailure<...> | undefined;
readonly refill?: WorkPoolPriorityRefill<...> | undefined;
readonly store?: {
...;
} | undefined;
}
PriorityOptionsWithItemSchema<function (type parameter) T in type PriorityOptionsWithItemSchema<T, E, R>T, function (type parameter) E in type PriorityOptionsWithItemSchema<T, E, R>E, function (type parameter) R in type PriorityOptionsWithItemSchema<T, E, R>R> =
type WorkPoolPriorityOptionsWithItemSchema<T, E, R> = {
readonly laneCount: number;
readonly name?: string | undefined;
readonly paused?: boolean | undefined;
readonly autoStart?: boolean | undefined;
readonly concurrency?: number | undefined;
readonly rateLimit?: WorkPoolRateLimitOptions | undefined;
readonly capacity?: number | undefined;
readonly takeAlgorithm?: TakeAlgorithm | undefined;
readonly key?: ((item: T) => string) | undefined;
readonly attempts?: number | undefined;
readonly shutdownMode?: "drain" | "finishActive" | undefined;
readonly namedLanes?: Record<string, number> | undefined;
readonly defaultLevel?: number | undefined;
readonly itemSchema: Schema.Codec<...>;
readonly onFailure?: QueueOnFailure<...> | undefined;
readonly refill?: WorkPoolPriorityRefill<...> | undefined;
readonly store?: {
...;
} | undefined;
}
WorkPoolPriorityOptionsWithItemSchema<function (type parameter) T in type PriorityOptionsWithItemSchema<T, E, R>T, function (type parameter) E in type PriorityOptionsWithItemSchema<T, E, R>E, function (type parameter) R in type PriorityOptionsWithItemSchema<T, E, R>R>;