Metered concurrency: Difference between revisions
Content deleted Content added
→{{header|Go}}: updated to use new WaitGroup feature |
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 |
||