Skip to content

Releases: plabayo/tokio-graceful

0.2.1

30 Sep 09:22
Compare
Choose a tag to compare

Expose a signal that can be awaited on without awaiting the configured
delay first. If no delay is used this API is equivalent to the already
existing cancelled function.

This can be used for scenarios where you do not need a graceful buffer and would like to
cancel as soon as a signal is received.

0.2.0

29 Sep 20:45
9cb360f
Compare
Choose a tag to compare

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.

0.1.6

01 Dec 00:43
Compare
Choose a tag to compare
  • Upgrade hyper examples to adapt to dev dependency hyper v1.0 (was hyper v0.14);

0.1.5

20 Sep 21:54
Compare
Choose a tag to compare
  • Support and use Loom for testing;
  • Fixes a bug in the private trigger code where a race condition could cause a deadlock (found using loom);
  • Signal / Project support for the Windows platform;
    • affected code: crate::default_signal and crate::Shutdown::default;
      • Unix and Windows are supported and have this code enabled;
      • Other platforms won't have this code;
      • When using Loom this code is also not there;
    • This fixes build errors for platforms that we do not support for the default signal;

0.1.4

08 Sep 13:10
Compare
Choose a tag to compare
  • Add example regarding ensuring you do catch exits and document it;

0.1.3

07 Sep 15:23
Compare
Choose a tag to compare
  • Support and add Waitgroup example;
  • Fix mistake in docs (thank you Mike Cronce);
  • Update 0.1.2 changelog to highlight the library is no longer 100% Rust Safe Code;

0.1.2

05 Sep 22:39
Compare
Choose a tag to compare

0.1.1

05 Sep 13:20
Compare
Choose a tag to compare
  • Improved documentation and add FAQ to readme;
  • Optimization to the into_spawn* methods (don't clone first);
  • add CI semver check;

0.1.0

04 Sep 22:24
Compare
Choose a tag to compare
  • Initial release.