4 ms·
> I expect it to be actual best practices that usually get documented somewhere that is a documentation resource well regarded by the "community" of that tool o
by assbuttbuttass 3y ago
> I expect it to be actual best practices that usually get documented somewhere that is a documentation resource well regarded by the "community" of that tool or language.
It's documented in the Google go style guide: https://google.github.io/styleguide/go/decisions#synchronous-functions https://google.github.io/styleguide/go/decisions#synchronous...
Note that the advice is slightly different, not "don't use goroutines," but rather "any internal goroutines need to be cleaned up before the function returns"