Kind: Class
Source: atloria-monorepo/packages/api-client/src/utils/deduplication.ts
Request deduplication manager Prevents duplicate requests within a specified time window
Methods
| Method | Signature | Returns |
|---|---|---|
deduplicate | `deduplicate(method: string, url: string, body: unknown | undefined, executor: () => Promise |
clear | clear() | void |
cleanup | cleanup() | void |
Where it refuses work
RequestDeduplicatorstops the work with an early return whenpending && now - pending.timestamp < this.windowMs.
Was this page helpful?