()
| 42 | } |
| 43 | |
| 44 | func newInboundQueue() *inboundQueue { |
| 45 | q := &inboundQueue{ |
| 46 | c: make(chan *QueueInboundElementsContainer, QueueInboundSize), |
| 47 | } |
| 48 | q.wg.Add(1) |
| 49 | go func() { |
| 50 | q.wg.Wait() |
| 51 | close(q.c) |
| 52 | }() |
| 53 | return q |
| 54 | } |
| 55 | |
| 56 | // A handshakeQueue is similar to an outboundQueue; see those docs. |
| 57 | type handshakeQueue struct { |