kscout / serverless-registry-api

API which curates serverless applications.
https://api.kscout.io
GNU General Public License v2.0
0 stars 1 forks source link

Refact to use sync.WaitGroup instead of homemade shutdown bus #168

Closed Noah-Huppert closed 5 years ago

Noah-Huppert commented 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.

Recently I learned how to use a sync.WaitGroup to do the same thing.