docs
/
dev.inmo.tgbotapi.bot.settings.limiters
/
PowLimiter
common
Pow
Limiter
data class
PowLimiter
(minAwaitTime:
MilliSeconds
, maxAwaitTime:
MilliSeconds
, powValue:
Double
, powK:
Double
, scope:
CoroutineScope
) :
RequestLimiter
Content copied to clipboard
Functions
Functions
limit
Link copied to clipboard
common
open suspend override fun <
T
>
limit
(block: suspend () ->
T
):
T
Content copied to clipboard
Use limit for working of block (like delay between or after, for example)