News for hackers. Stuff that matters.
Re:Goroutines and APIs by gnoack on Monday November 18, 2019 @05:51PM (#21568996)
The net/http library is the caller in this case, so that would be consistent with the rule that callers should start goroutines.

Request handlers are a bit of a special case too, in that they are a framework for dispatching tasks to be worked on; what is main() for a command line program is the request handler for a webserver. It seems fair that there is some concurrency coordination happening at the top level.

There are no comments on this comment yet.