()
| 60 | } |
| 61 | |
| 62 | func newHandshakeQueue() *handshakeQueue { |
| 63 | q := &handshakeQueue{ |
| 64 | c: make(chan QueueHandshakeElement, QueueHandshakeSize), |
| 65 | } |
| 66 | q.wg.Add(1) |
| 67 | go func() { |
| 68 | q.wg.Wait() |
| 69 | close(q.c) |
| 70 | }() |
| 71 | return q |
| 72 | } |
| 73 | |
| 74 | type autodrainingInboundQueue struct { |
| 75 | c chan *QueueInboundElementsContainer |