execute

suspend fun <T> execute(block: suspend () -> T): T(source)

Executes an operation with sliding window rate limiting.

Return

The result of the operation

Parameters

block

The operation to execute

Throws

if rate limit is exceeded

if the operation fails