DelayRateLimiter
A RateLimiter that proactively delays requests when the API rate limit is exhausted.
After each response, this implementation reads the X-RateLimit-Remaining and X-RateLimit-Reset headers to track the current window. When remaining reaches zero, throttle suspends the caller until the reset timestamp has passed before allowing the next request.
This prevents RateLimitExceededException under normal single-instance usage. If multiple dev.pubgkt.PubgApi instances share the same API key, 429 responses can still occur and will be surfaced as RateLimitExceededException.
This implementation is not designed for high-concurrency scenarios where many coroutines fire requests simultaneously.
See also
Inheritors
Constructors
kotlin.time.Clock is not exported to JavaScript. This secondary constructor allows JavaScript consumers to instantiate DelayRateLimiter