Helper class implementing a debouncing timer.
The block() passed to schedule will only be executed after delayMs if no other call to schedule occurred in the meanwhile.
Schedules block to be called after the timeout.