dtimer
dtimer copied to clipboard
Post a timer without overwrite
This adds support to the .post() method to only post the timer if it
doesn't already exist. This is useful for implementing application
logic where the timer must fire after delay milliseconds, or sooner if
the timer was already set (the current behaviour is to always overwrite
and extend the timer). I've added a new parameter, but maintained
backwards compatibility.
I'm using this in my app because I needed it. I don't have any tests, but thought you might like to consider it anyway.