toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.bot.settings.limiters
/
RequestLimiter
Request
Limiter
interface
RequestLimiter
Inheritors
CommonLimiter
ExceptionsOnlyLimiter
NoLimitsLimiter
PowLimiter
Members
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