RateLimitedRequest
internal class RateLimitedRequest(val permits: Int, val continuation: Continuation<Unit>, var canResume: Boolean = false)(source)
Represents a request that was rate-limited and enqueued in a queue.
Parameters
permits
The number of permits required by the request.
continuation
The continuation that will be resumed when the request is granted.
canResume
A flag indicating whether the request was granted and internal state consistency was maintained. Therefore, the coroutine can be safely resumed.