Why does the use of an unbuffered channel in the same goroutine result in a deadlock?
From the documentation : If the channel is unbuffered, the sender blocks until the receiver has received the value. If the channel has a buffer, the sender blocks only until the value has been copied to the buffer; if the buffer is full, this means waiting until some receiver has retrieved a value. Said otherwise … Read more