()
| 150 | } |
| 151 | |
| 152 | func (q *MsgQueue) Close() { |
| 153 | q.cond.L.Lock() |
| 154 | defer q.cond.L.Unlock() |
| 155 | defer q.cond.Broadcast() |
| 156 | q.closed = true |
| 157 | } |
| 158 | |
| 159 | // Dropped records an error in the queue that messages might have been Dropped |
| 160 | func (q *MsgQueue) Dropped() { |