Похожие чаты

Why? it is completly normal graceful shutdown

5 ответов

15 просмотров

Just the multi-defer statements

Amir
Just the multi-defer statements

Why doing it like that tho? Can't you just do <-ctx.Done() listener.Close() ...rest of the code

woto 「 噂 」
Why doing it like that tho? Can't you just do <-...

Well, technically you have the order incorrectly there

woto 「 噂 」
Edited

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)

Похожие вопросы

Обсуждают сегодня

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Есть рассчет для Таллинна? https://x.com/dr_enderlin/status/1784581592003850496
Vladimir Ivanov
23
Any dog on Fantom ?
Bitcoin Magic
19
Интересно, а в чём прикол мак оси?
Лисицка
16
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Добрый день Как поставить vscode из флэтпака как дефолтный редактор в filezilla?
Daniel
16
Tax his land, Tax his bed, Tax the table At which he's fed. Tax his work, Tax his pay, He works for peanuts Anyway! Tax his cow, Tax his goat, Tax his pants, Tax his coat....
Forge
5
А почему в си некоторые вещи работают с двойными кавычками некоторые с одинарными? Нельзя было все сделать с одними или чтоб работало с разными? например чтоб выводить строки ...
.
15
Карта сайта