Package-level declarations
Types
Link copied to clipboard
class SuspendingBucket
SuspendingBucket is an opaque wrapper around Bucket4j's LockFreeBucket, and implements an interface semantically equivalent to BlockingBucket. Whereas Bucket4j's blocking behavior is just that, SuspendingBucket instead delays, making it safe to use in a coroutine context.
Link copied to clipboard
data class SuspendingBucketConfiguration(var timeMeter: TimeMeter = TimeMeter.SYSTEM_MILLISECONDS, mutableLimits: MutableList<Bandwidth> = mutableListOf())
Defines the configuration for creating a SuspendingBucket.
Link copied to clipboard
class SuspendingBucketTest