News for hackers. Stuff that matters.
Re:Notes on structured concurrency, or: Go statement conside... by wbl on Saturday July 02, 2022 @10:42AM (#31959385)
Waitgroups are not the same thing as they cannot be dynamically sized in the same way nurseries can.
Re:Notes on structured concurrency, or: Go statement conside... by swagonomixxx on Saturday July 02, 2022 @11:41AM (#31959960)
Not sure what you mean by this. You can dynamically add to a wait group using the Add() method.
Re:Notes on structured concurrency, or: Go statement conside... by wbl on Saturday July 02, 2022 @06:01PM (#31962858)
So I slightly misremembered the subtlety and it is more forgiving in that Add can be called while waiting if a thread is still executing in it.