Metered concurrency: Difference between revisions

Content deleted Content added
Sonia (talk | contribs)
→‎{{header|Go}}: updated to use new WaitGroup feature
Sonia (talk | contribs)
m →‎{{header|Go}}: small update to explanation text
Line 329: Line 329:
}</lang>
}</lang>
=={{header|Go}}==
=={{header|Go}}==
Counting semaphore implemented here with Go channels. Also WaitGroup used as a completion checkpoint.
Implementation using Go channels.
<lang go>package main
<lang go>package main