SendComplete indicates the sender is done. We close the channel to give a clear signal to the consumer
()
| 130 | |
| 131 | // SendComplete indicates the sender is done. We close the channel to give a clear signal to the consumer |
| 132 | func (a *asyncResponse) SendComplete() { |
| 133 | close(a.respChan) |
| 134 | } |
| 135 | |
| 136 | // Next returns the next http.Response or an error if one is available. It always prefers an error over a response. |
| 137 | // todo: review performance. There is a lot of channel access here |
no outgoing calls