Releases: Finomnis/tokio-graceful-shutdown
Releases · Finomnis/tokio-graceful-shutdown
v0.11.1
v0.11.0
Breaking Changes
- Bump
miette
dependency to5.3
Changes
- Change license from
Apache-2.0
toMIT OR Apache-2.0
as recommended in the Rust guidelines
v0.10.1
v0.10.0
Breaking Changes
- The error return type of
Toplevel::handle_shutdown_requests
isGracefulShutdownError
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 nextToplevel
object.
- Subsystem names can be
&str
instead of&'static str
v0.10.0-beta.0
Breaking Changes
- The error return type of
Toplevel::handle_shutdown_requests
isGracefulShutdownError
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 nextToplevel
object.
- Subsystem names can be
&str
instead of&'static str
v0.9.0
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
- In most cases this should make no difference, but in a couple of corner cases this might
Non-Breaking Changes
- Add
SubsystemHandle::is_shutdown_requested()
as a querying alternative to the asyncon_shutdown_requested()
v0.9.0-beta.1
Breaking Changes
- Move error types to mod
errors
v0.9.0-beta.0
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
- In most cases this should make no difference, but in a couple of corner cases this might
Non-Breaking Changes
- Add
SubsystemHandle::is_shutdown_requested()
as a querying alternative to the asyncon_shutdown_requested()
v0.8.0
v0.8.0-beta.2
Fixes
- Fix incorrect generic restriction in
IntoSubsystem
trait