Client
Server
Reference / @open-music-sdk/core / tRateLimiter
Defined in: packages/core/src/rate-limit.ts:5
What paces requests: the client asks it before each attempt is sent, and sends when it answers. createRateLimiter makes one; an app may hand the client its own, with the same acquire.
acquire(signal?): Promise<void>;Defined in: packages/core/src/rate-limit.ts:13
Resolves when a request may go. Rejects with the abort reason as soon as signal fires, wherever the caller is in the queue. What it rejects with, the request that asked rejects with, as it is.
AbortSignal
The request's own signal, when it has one.
Promise<void>
The reason signal aborted with, when it does.