4 ms·
Have sent a PR handling all the wrinkles: https://github.com/soroushjp/go-parallelism-monte-carlo-demo/pull/2 https://github.com/soroushjp/go-parallelism-monte-
by kid0m4n 12y ago
Have sent a PR handling all the wrinkles: https://github.com/soroushjp/go-parallelism-monte-carlo-demo/pull/2 https://github.com/soroushjp/go-parallelism-monte-carlo-demo...
* There is a race condition where wg.Wait() might execute before the wg.Add(1) runs
* The wait group was not necessary as we are already waiting for all the results from the channel
- soroushjp 12y agoThanks again, very helpful and updated all relevant code in the post also.