Previously I wrote:
var err error
if s.internalServer != nil {
s.internalServer.Start()
err = errors.Join(err, s.internalServer.Shutdown(ctx))
}
if s.publicServer != nil {
err = errors.Join(err, s.publicServer.Shutdown(ctx))
}
if s.store != nil {
s.store.Close()
}
return err
I need to wait for the publicServer and internalServer echo servers shutdown to close the backend store. Now echo.Server has no Shutdown method, how can I easily await for its shutting down complete?
Previously I wrote:
I need to wait for the
publicServerandinternalServerecho servers shutdown to close the backend store. Nowecho.Serverhas noShutdownmethod, how can I easily await for its shutting down complete?