4 ms·
Agreed - it's also not nearly as clear for `ctx, cancel := ...; defer cancel()` and I see that reflex in a few places where it's not only often much less effici
by morelisp 4y ago
Agreed - it's also not nearly as clear for `ctx, cancel := ...; defer cancel()` and I see that reflex in a few places where it's not only often much less efficient, but logically wrong / less safe.
- klodolph 4y agoWhat issues do you see with defer cancel()?
- preseinger 4y agoI think the OP is saying defer cancel() is correct, and the stuff people would do to avoid it are the things that are bad.