mirror of
https://github.com/aptible/supercronic.git
synced 2025-09-26 20:31:17 +08:00

Using a (cancellable) context is a little more idiomatic than re-implementing one using a channel, and it's a little more efficient (since we share one context across all job goroutines, as opposed to requiring one cancel channel per goroutine).
2 lines
63 B
Plaintext
2 lines
63 B
Plaintext
* * * * * * * echo "$MSG_START" && sleep 2 && echo "$MSG_DONE"
|