Throttler

constructor(timeoutMillis: Int, scope: CoroutineScope = CoroutineScope(Dispatchers.Default + Job()))

Parameters

timeoutMillis

The minimum time interval to wait before running the provided action

scope

The coroutine scope to run the action in