The debouncer helps smoothen out oscillations if conflicting events are sent out in short bursts.
- Value parameters:
- maxEvents
The maximum number of events that can accumulate. If this count is reached, the events are delivered immediately and the time window is reset. This avoids holding events indefinitely if the window keeps getting reset.
- window
How long the driver waits to propagate an event. If another event is received within that time, the window is reset and a batch of accumulated events will be delivered. Debouncing may be disabled by setting the window to 0 or max-events to 1 (not recommended).
- Companion:
- object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any