Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: goroutines Clear Filter

Waitgroups: What they are, how to use them and what changed with Go 1.25

Imagine the following problem: you need to process hundreds of records and generate a single output. One way to solve this is to process each record sequentially and unify the output only at the end. However, this can be extremely slow, depending on the time spent processing each record. Another way is to process them concurrently, speeding up the overall time. In my post about introduction to concurrency, I talked a bit about goroutines and channels . Now, I’ve decided to talk about waitgroups