...
Debouncer.debounce("something", new Runnable() {
@Override
public void run() {
// Will not be ran due to the call below
...
}
}, 250);
Thread.sleep(100, 0);
Debouncer.debounce("something", new Runnable() {
@Override
public void run() {
// Overrides the previous call with identifier "something", running after approx. 350ms.
// 100ms simulated "wait" time, 250ms debounce time.
...
}
}, 250);
...
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Simple debouncer for Android Runnables
License
xolan/android-debouncer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple debouncer for Android Runnables
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published