open-nomad/command/agent/monitor
Seth Hoenig db2347a86c cleanup: prevent leaks from time.After
This PR replaces use of time.After with a safe helper function
that creates a time.Timer to use instead. The new function returns
both a time.Timer and a Stop function that the caller must handle.

Unlike time.NewTimer, the helper function does not panic if the duration
set is <= 0.
2022-02-02 14:32:26 -06:00
..
monitor.go cleanup: prevent leaks from time.After 2022-02-02 14:32:26 -06:00
monitor_test.go coordinate closing of doneCh, use interface to simplify callers 2019-11-05 11:44:26 -05:00