mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-27 05:04:26 +00:00
motivation: sometimes a task needs to be de-registered since the task was manually shutdown outside the lifecycle scope changes: * registration APIs now return a registration key which can be used as a cancellation token * add API to de-register a task * refactor state to use a registery instead of array of tasks * add tests