Skip to content

Releases: Finomnis/tokio-graceful-shutdown

v0.4.3

05 Dec 16:35
7714f3a
Compare
Choose a tag to compare

Changes

  • Fix: Errors during partial shutdown no longer cause global shutdown.
    • Instead, errors get properly delivered to the task that issued the partial shutdown.

v0.4.2

05 Dec 08:26
3439479
Compare
Choose a tag to compare

Changes

  • Reduce Rust version to 2018
    • Adds compatibility with Rust 2018 projects

v0.4.1

28 Nov 20:35
efab9f4
Compare
Choose a tag to compare

Breaking Changes

  • Rename Toplevel::wait_for_shutdown to Toplevel::handle_shutdown_requests to make it clearer what the purpose of this function is
  • Implement partial shutdown API
    • Change return value of SubsystemHandle::create() to NestedSubsystem
    • Add SubsystemHandle::perform_partial_shutdown(NestedSubsystem)
    • Add NestedSubsystem struct and PartialShutdownError enum

v0.3.2

28 Nov 11:06
1785ed5
Compare
Choose a tag to compare

Changes

  • Subsystems now get cancelled if the Toplevel object gets dropped
  • Fixes in documentation

v0.3.1

22 Nov 00:14
Compare
Choose a tag to compare

Changes

  • Rewrite panic handling to no longer use panic hooks

This should have no effect on the API itself. It is mainly an improvement in the interaction with other libraries that use panic hooks.

v0.3.0

21 Nov 10:12
b70f04c
Compare
Choose a tag to compare

Breaking changes

  • Rewrite the API to now use async lambdas or coroutines instead of async traits

Using coroutines/lambdas simplifies most use cases a lot without any reduction in capability.

More information about how to use subsystem structs as in the previous API can be seen in the examples.