rkoshak / openhab-rules-tools

Library functions, classes, and examples to reuse in the development of new Rules.
Other
64 stars 23 forks source link

[timers] Add ability to detect and reschedule timers that occur at the same time #73

Closed rkoshak closed 1 year ago

rkoshak commented 2 years ago

Now that we have a centralized place where timers are actually created, add some bookkeeping there to keep track of when all the outstanding timers are scheduled to go off and avoid collisions. I'm thinking that if they are within 250 msec that we move the new timer forward half a second. Don't forget to clean up the book keeping to avoid a memory leak.

florian-h05 commented 1 year ago

I think this is outdated now, since all official supported ways of creating timers (NodeJS ways and createTimer) are now threadsafe.

rkoshak commented 1 year ago

Yep. I forgot this one was still open.