Rowan Bohde b350719527 feat: allow graceful shutdowns
Add a Shutdown(context.Context) method to the Poller. This will first
shutdown all active polling, preventing any new jobs from spawning. It
will then wait for either all jobs to finish, or for the context to
finish. If the context finishes, it will then force all jobs to end,
and then exit.
2024-05-13 15:13:09 -05:00
..
2024-05-13 15:13:09 -05:00