RateLimitedRequest

constructor(permits: Int, continuation: Continuation<Unit>, canResume: Boolean = false)(source)

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.