stoppableListener
stoppableListener copied to clipboard
A Go helper package to gracefully stop a net/http server.
Maybe v2
Hi. I rewrote everything to make the code more testable and modular. I am not sure if you are going to merge it because it will break any code using...
Great package, but it took me a while to figure out what graceful really means. You may want to add it so others like me don't stop the listener after...
Wouldn't it be possible to remove the mutex on your counter and simply use the sync/atomic package AddAtomic___ methods?