On Tue, Dec 1, 2020 at 9:05 PM nc <nchell...@gmail.com> wrote: > I just wanted to know if there was a way to tell that the goroutines c1, c2 > actually are hung. Could I in my head add the sentences "While the program > terminates, that is only because the main goroutine has finished its > execution. One of the sending goroutines will still be waiting to send its > value to its output channel when this happens." to the end of the paragraph > that says "In our example pipeline, if a stage fails to consume all the > inbound values, the goroutines attempting to send those values will block > indefinitely:"?
When main exits the process is terminated so no goroutines exist so it's not meaningful to say if they are hung or not. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-W0J4DG3m2J-oK8q2K-dnd7%3DuEXZ5xFJfZEpKBBronvCg%40mail.gmail.com.