You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue with the execution of this example. With the default code I got the following output (nearly always, once or two I got two "Hello, friend!" messages...
Also had similar issues with other bit of this chapter, for example concurrency/data-races and concurrency/buffered-channels. I'm using go version 1.21.3
Hello,
I had an issue with the execution of this example. With the default code I got the following output (nearly always, once or two I got two "Hello, friend!" messages...
https://github.com/PacktPublishing/Test-Driven-Development-in-Go/blob/main/chapter09/concurrency/once/main.go
Fixed it with wait groups but perhaps there's a simpler way...
The text was updated successfully, but these errors were encountered: