openhab-scripters / openhab-helper-libraries

Scripts and modules for use with openHAB
Eclipse Public License 1.0
88 stars 69 forks source link

Rate Limiting. #255

Closed rkoshak closed 3 years ago

rkoshak commented 4 years ago

This is an implementation of non-blocking rate limiting implementation. When you call "run" it will ignore any calls to it that take place before the latch time expires.

I chose a Class in this case because a user may need more than one limiter going at any given time.

NOTE: I had to rename everything as I'm clearly tired.

Signed-off-by: Rich Koshak rlkoshak@gmail.com

rkoshak commented 4 years ago

This PR is ready for review

rkoshak commented 3 years ago

I've basically completely rewritten this so am closing this PR. When reviewing submissions to the helper library becomes a priority I'll resubmit. In the mean time I'll keep in in my own repo where I can continue development.