Tankōbon / main/services/request-pacer / RequestPacer
Interface: RequestPacer
Defined in: main/services/request-pacer.ts:7
Waits for a slot before a request is sent to a site.
Methods
wait()
wait(
signal?):Promise<void>
Defined in: main/services/request-pacer.ts:12
Resolves when the caller may send its request: at least the pacer's interval after the previous caller's slot, whoever the callers are. Rejects with the signal's reason if it is aborted while waiting.
Parameters
signal?
AbortSignal
Returns
Promise<void>