Package-level declarations

Types

Link copied to clipboard
@Serializable
class CommonLimiter(lockCount: Int = 10, regenTime: MilliSeconds = 15 * 1000, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)) : RequestLimiter
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
@Serializable
data class PowLimiter(minAwaitTime: MilliSeconds = 0, maxAwaitTime: MilliSeconds = 10000, powValue: Double = 4.0, powK: Double = 1.6, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)) : RequestLimiter
Link copied to clipboard
interface RequestLimiter