mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-29 05:24:24 +00:00
* Make sure we return after gracefully shutdown # Motivation After calling `shutdownGracefully` in our `ServiceGroup` we know that one of two things happened: 1. We got an error so something went wrong 2. We got no error so all services finished In the 2. case, there might still be a few child tasks in the task group e.g. the graceful shutdown timeout task. We are currently still iterating the remaining child task results which might lead into unexpected fatal errors. # Modification This PR makes sure that after we have successfully shutdown we are stopping iterating the child task results. # Result No more unexpected fatal errors. * Fix flaky test