mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-15 14:56:42 +00:00
Add `OrderedCancelGroup` type to enforce the cancellation of go routines in a reverse order. Additionally this type waits for the go-routine to finish before proceeding to the next one. We need this to guarantee that all the user services shut down properly without deadlocking.