ferdinandhubbard981 / GameOfLife-Distributed

Other
0 stars 0 forks source link

why 5? (line 56 of distributor.go) #12

Closed ferdinandhubbard981 closed 2 years ago

ferdinandhubbard981 commented 2 years ago
    for i := 0; i < 5; i++ {
        select {
        case exit <- true:
        default:
        }
    }

5 seems kind of arbitrary.

achan-css commented 2 years ago

You could probably replace it with blocking sends and the amount of go routines listening for exit