Closed ferdinandhubbard981 closed 2 years ago
for i := 0; i < 5; i++ { select { case exit <- true: default: } }
5 seems kind of arbitrary.
You could probably replace it with blocking sends and the amount of go routines listening for exit
5 seems kind of arbitrary.