NewQueue create and init a new Queue
()
| 171 | |
| 172 | // NewQueue create and init a new Queue |
| 173 | func NewQueue() *Queue { |
| 174 | return &Queue{ |
| 175 | count: int64(0), |
| 176 | head: nil, |
| 177 | tail: nil, |
| 178 | mux: sync.Mutex{}, |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // QueueIteratorNode implements the api.Iterator interface with ability to accept new item when being iterated |
| 183 | type QueueIteratorNode struct { |
no outgoing calls