Does this command exist for Linux?
runonce --dampen 300 echo "hello"
The command would take a command to run and optional criteria to limit of frequently it is executed.
The option dampen says wait 300 milliseconds and then run the command. Any other executions of this command get coalesced into a single run. This allows you to collapse events in a generic way and combine their execution.
if you ran
runonce --dampen 300 echo "hello"
runonce --dampen 300 echo "hello"
runonce --dampen 300 echo "hello"
From three different sub-shells at roughly the same time, the first one would live for 300 milliseconds and print hello. The other two would return immediately and do nothing.
If this exists, what is the name of the tool or a link to it's project page?