0.2.0
This is usability wise not a breaking release,
however it does make changes to the API which might break subtle edge cases
and it also increases the MSRV to 1.75.
New Features:
- add a delay (Duration) that can be used
to trigger the cancel notification to ongoing jobs once the shutdown trigger (signal)
has been received; - add a second signal factory that can be used to create an overwrite
signal to be created and triggered once the main signal has been triggered,
as an alternative to the jobs being complete or max delay has been reached.
Both features can be configured using the newly introduced ShutdownBuilder
,
which can be made directly or via Shutdown::builder
.