Just the multi-defer statements
Why doing it like that tho? Can't you just do <-ctx.Done() listener.Close() ...rest of the code
Well, technically you have the order incorrectly there
Basically, in that situation I need to then add the listener.Close() to all branches of the http server closing (e.g. on error, etc)
Обсуждают сегодня