docs
6.0.1
common
docs
/
dev.inmo.tgbotapi.bot.settings.limiters
/
RequestLimiter
Request
Limiter
interface
RequestLimiter
Functions
Inheritors
Functions
limit
Link copied to clipboard
abstract
suspend
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
Inheritors
CommonLimiter
Link copied to clipboard
ExceptionsOnlyLimiter
Link copied to clipboard
NoLimitsLimiter
Link copied to clipboard
PowLimiter
Link copied to clipboard