>When Shutdown is called, Serve, ListenAndServe, and ListenAndServeTLS immediately return ErrServerClosed. Make sure the program doesn't exit and waits instead for Shutdown to return.
So no, this writes to the "done" channel essentially immediately once `close(stop)` is called, and ends the process prematurely.
>When Shutdown is called, Serve, ListenAndServe, and ListenAndServeTLS immediately return ErrServerClosed. Make sure the program doesn't exit and waits instead for Shutdown to return.
So no, this writes to the "done" channel essentially immediately once `close(stop)` is called, and ends the process prematurely.