News for hackers. Stuff that matters.
Re:Goroutines and APIs by gnoack on Monday November 18, 2019 @04:44PM (#21568436)
(whoops, excuse the bad webserver config... should be fixed now)

> Don't require users of your API to start goroutines to use your API correctly.

Actually, what I postulate in the article is different... The theory is that making the caller kick off the goroutines puts more control over concurrency into the hands of the caller, and the resulting API is simpler.

> Avoid high goroutine fanout in your implementation.

That's for sure. :)

There are no comments on this comment yet.