mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 07:55:25 +00:00
9 lines
253 B
Kotlin
9 lines
253 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.bot.settings.limiters
|
||
|
|
||
|
interface RequestLimiter {
|
||
|
/**
|
||
|
* Use limit for working of block (like delay between or after, for example)
|
||
|
*/
|
||
|
suspend fun <T> limit(block: suspend () -> T): T
|
||
|
}
|