You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for this proposal. I like this idea, my 2 cents here is :
If we already return information about the shutdown, perhaps we can also return several other informations. e.g. the number of services actually closed, the time elapsed, potential errors.
My proposal : shutdownFeedback, err := do.Shutdown()
typeShutdownFeedbackstruct {
All time.DurationServicesmap[string]time.DurationServicesErrormap[string]error// each errors returned by each services shutdownservicesTurnedOffint// maybe something else ?
}
My monolith application relies a lot on
do.Shutdownable
interface. Some tasks call database or third-parties, and flush buffer.I would like to measure the time of the
do.Shutdown
processing.API proposal:
duration, err := do.Shutdown()
duration
would be either atime.Duration
or:WDYT ?
The text was updated successfully, but these errors were encountered: