Skip to content

Releases: Finomnis/tokio-graceful-shutdown

v0.10.1

10 Jun 09:52
Compare
Choose a tag to compare

Non-Breaking Changes

  • Add .cancel_on_shutdown() method to all std::future::Future objects through the FutureExt trait.
    • Cancels the future when a shutdown happened.

v0.10.0

07 Jun 07:58
Compare
Choose a tag to compare

Breaking Changes

  • The error return type of Toplevel::handle_shutdown_requests is GracefulShutdownError instead of a template

Non-Breaking Changes

  • Add Toplevel::nested() to allow toplevel objects that are nested inside of subsystems.
    • This allows for a clean isolation of program parts that require their own shutdown context.
  • Add SubsystemHandle::request_global_shutdown() to initiate a shutdown of the entire program.
    • SubsystemHandle::request_shutdown() will only shut down the next Toplevel object.
  • Subsystem names can be &str instead of &'static str

v0.10.0-beta.0

01 Jun 13:41
Compare
Choose a tag to compare
v0.10.0-beta.0 Pre-release
Pre-release

Breaking Changes

  • The error return type of Toplevel::handle_shutdown_requests is GracefulShutdownError instead of a template

Non-Breaking Changes

  • Add Toplevel::nested() to allow toplevel objects that are nested inside of subsystems.
    • This allows for a clean isolation of program parts that require their own shutdown context.
  • Add SubsystemHandle::request_global_shutdown() to initiate a shutdown of the entire program.
    • SubsystemHandle::request_shutdown() will only shut down the next Toplevel object.
  • Subsystem names can be &str instead of &'static str

v0.9.0

21 May 18:07
Compare
Choose a tag to compare

Breaking Changes

  • Move error types to mod errors
  • Shutdown gets triggered automatically when all subsystems have finished
    • In most cases this should make no difference, but in a couple of corner cases this might
      be a breaking change

Non-Breaking Changes

  • Add SubsystemHandle::is_shutdown_requested() as a querying alternative to the async on_shutdown_requested()

v0.9.0-beta.1

18 May 13:38
Compare
Choose a tag to compare
v0.9.0-beta.1 Pre-release
Pre-release

Breaking Changes

  • Move error types to mod errors

v0.9.0-beta.0

16 May 19:45
Compare
Choose a tag to compare
v0.9.0-beta.0 Pre-release
Pre-release

Breaking Changes

  • Shutdown gets triggered automatically when all subsystems have finished
    • In most cases this should make no difference, but in a couple of corner cases this might
      be a breaking change

Non-Breaking Changes

  • Add SubsystemHandle::is_shutdown_requested() as a querying alternative to the async on_shutdown_requested()

v0.8.0

15 May 22:17
Compare
Choose a tag to compare

Breaking Changes

  • Error type is now configurable via generic
    • Enables custom error types for projects that are then recoverable from GracefulShutdownError in their original type
    • For more infos, see example 18_error_type_passthrough

v0.8.0-beta.2

09 May 13:33
Compare
Choose a tag to compare
v0.8.0-beta.2 Pre-release
Pre-release

Fixes

  • Fix incorrect generic restriction in IntoSubsystem trait

v0.8.0-beta.1

09 May 12:38
Compare
Choose a tag to compare
v0.8.0-beta.1 Pre-release
Pre-release

Fixes

  • Fix compatibility issue between IntoSubsystem and custom error types

v0.8.0-beta.0

07 May 18:11
Compare
Choose a tag to compare
v0.8.0-beta.0 Pre-release
Pre-release

Breaking Changes

  • Error type is now configurable via generic
    • Enables custom error types for projects that are then recoverable from GracefulShutdownError in their original type
    • For more infos, see example 18_error_type_passthrough