Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.watchdog: Allow passing a new timeout to :reset() | Matthew Wild | 2022-06-11 | 1 | -1/+4 |
| | |||||
* | util.watchdog: Allow :reset() to restart a cancelled watchdog | Matthew Wild | 2022-06-11 | 1 | -5/+6 |
| | |||||
* | util.watchdog: Update to use "new" util.timer API | Matthew Wild | 2022-06-11 | 1 | -13/+16 |
| | | | | | | | | | | | | When this module was written, it wasn't possible to cancel or reschedule a timer. Times have changed, and we should take advantage of those new methods. This module becomes a very thin wrapper around util.timer now, but I'd argue it's still a very common and useful concept/abstraction to have around. Possible API change: this removes the 'last_reset' field of the watchdog. This was never really intended as a public thing, and I can't find any code that uses it, so I consider removal to be safe. | ||||
* | vairious: Add annotation when an empty environment is set [luacheck] | Kim Alvefur | 2018-02-28 | 1 | -0/+1 |
| | |||||
* | util.*: Remove use of module() function, make all module functions local and ↵ | Kim Alvefur | 2015-02-21 | 1 | -3/+5 |
| | | | | return them in a table at the end | ||||
* | util.watchdog: Pass watchdog object to callback so that it doesn't always ↵ | Matthew Wild | 2012-05-18 | 1 | -1/+1 |
| | | | | have to be a closure | ||||
* | util.watchdog: Watchdog timer library | Matthew Wild | 2011-10-21 | 1 | -0/+34 |