throttle

fun throttle(value: Int)

Sets the rate limit to value bytes/second; 0 means infinite. Must be in 0 until inf: at or beyond inf the token-bucket arithmetic could overflow.


fun throttle(): Int

The current rate limit in bytes/second; 0 means infinite.