Nikola Tesla knows a lot about conductors. And he thought the channels in Go were similar. The receiver must receive no more than 7 data items from the channel. This limit is set by the Attempts constant. But it should stop when the channel is closed.
But something went wrong and now it doesn't always work. Now the receiver receives 7 data items every time.
Help Nicola. Correct the receiver so that it outputs only the data sent to the channel before channel closing.