quii / learn-go-with-tests

Learn Go with test-driven development
MIT License
22.03k stars 2.79k forks source link

Dealing with slow goroutines while using channels #734

Closed swamisriman closed 7 months ago

swamisriman commented 7 months ago

Here, it is not explained how we are dealing with late goroutines, which was a problem for us here.

ie; What if we took a very long time to check one of the websites? What if the for loop runs before that's done? How is it taken care of?

PS: I don't know the answer to this (I'm still learning). I'm hoping someone will add this info.

quii commented 7 months ago

It's in the next chapter :) https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/select#slow-tests

swamisriman commented 7 months ago

Oh ok I didn't start reading that one yet. Thanks 😅