aboutsummaryrefslogtreecommitdiffstats
path: root/util/watchdog.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.watchdog: Allow passing a new timeout to :reset()Matthew Wild2022-06-111-1/+4
|
* util.watchdog: Allow :reset() to restart a cancelled watchdogMatthew Wild2022-06-111-5/+6
|
* util.watchdog: Update to use "new" util.timer APIMatthew Wild2022-06-111-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 Alvefur2018-02-281-0/+1
|
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-3/+5
| | | | return them in a table at the end
* util.watchdog: Pass watchdog object to callback so that it doesn't always ↵Matthew Wild2012-05-181-1/+1
| | | | have to be a closure
* util.watchdog: Watchdog timer libraryMatthew Wild2011-10-211-0/+34