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.

Constructors

Link copied to clipboard
constructor(permits: Int, continuation: Continuation<Unit>, canResume: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard