ExceptionsOnlyLimiter

Simple limiter which will lock any request when TooMuchRequestsExceptions is thrown and rerun request after lock time

Functions

Link copied to clipboard
open suspend override fun <T> limit(block: suspend () -> T): T

Use limit for working of block (like delay between or after, for example)

open suspend fun <T : Any> limit(request: Request<T>, block: suspend () -> T): T