convert waiter from file monitor to timer/ticker combination #985
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
We could maximize code reuse, via golang constructs of Timer and Ticker, and convert cmd/waiter/waiter.go from #934 and its loop on the PID file maintenance.
Instead, you can have a single select with cases for both the Timer and Ticker.
Done
method that is called when the "condition" is achieved calls the Ticker cancel/stop, and that event leads to a stop/cancel of the Timer, and the waiter gracefully exits, have successfully waited for its desired condition.See the thread starting at #934 (comment) for more details
The text was updated successfully, but these errors were encountered: