@nerjs/batchloader
Version:
`BatchLoader` is a tool for batching data requests with support for deduplication, caching, and parallel task management. It is designed to enhance flexibility and performance in scenarios requiring asynchronous data processing. This module was inspired b
17 lines (16 loc) • 495 B
TypeScript
export declare class LoaderError extends Error {
get name(): string;
}
export declare class TimeoutError extends LoaderError {
readonly delay: number;
constructor(delay: number);
}
export declare class AbortError extends LoaderError {
readonly operation: string;
constructor(operation: string, reason?: unknown);
}
export declare class SilentAbortError extends AbortError {
}
export declare class RejectedAbortError extends AbortError {
constructor(operation: string);
}