Expand description
Constructors§
Source§new AbstractAsyncBatchResolver<Input, Result, Key = Input>(
deduplication?: DeduplicationStrategy,
): AbstractAsyncBatchResolver<Input, Result, Key>
new AbstractAsyncBatchResolver<Input, Result, Key = Input>(
deduplication?: DeduplicationStrategy,
): AbstractAsyncBatchResolver<Input, Result, Key>
Accessors§
Methods§
Source§delete(input: Input): boolean
delete(input: Input): boolean
Deletes a pending or cached task, rejecting it if still unresolved.
Source§get(input: Input, deduplication?: DeduplicationStrategy, signal?: AbortSignal): PromiseLike<Result>
get(input: Input, deduplication?: DeduplicationStrategy, signal?: AbortSignal): PromiseLike<Result>
Requests a result for a given input, batching the request and utilizing an internal cache.
Batches multiple asynchronous calls within a single operation, caching results.