AdaptiveLimiter

AIMD-based adaptive concurrency limiter. See file-level docs for details.

Types

Link copied to clipboard
object Companion

Factory for AdaptiveLimiter.

Properties

Link copied to clipboard

The configuration this limiter was created with.

Functions

Link copied to clipboard
suspend fun currentLimit(): Int

Returns the current dynamic concurrency limit.

Link copied to clipboard
suspend fun <T> execute(block: suspend () -> T): T

Executes block under the adaptive concurrency limit, blocking (without polling) until a slot is available.

Link copied to clipboard

Returns a snapshot of the current limiter statistics.

Inherited functions

Link copied to clipboard