Skip to content

0.2.0

Compare
Choose a tag to compare
@GlenDC GlenDC released this 29 Sep 20:45
· 2 commits to main since this release
9cb360f

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.