Closed Noah-Huppert closed 5 years ago
Initially I wrote a custom solution called the shutdownBus to ensure that all components of the server have shut down gracefully before exiting.
shutdownBus
Recently I learned how to use a sync.WaitGroup to do the same thing.
sync.WaitGroup
Initially I wrote a custom solution called the
shutdownBus
to ensure that all components of the server have shut down gracefully before exiting.Recently I learned how to use a
sync.WaitGroup
to do the same thing.