HasNext increments the row cursor. If we're at the end, it'll return false.
()
| 151 | |
| 152 | // HasNext increments the row cursor. If we're at the end, it'll return false. |
| 153 | func (q *QueueIterator) HasNext() bool { |
| 154 | return q.queue.GetCount() > 0 |
| 155 | } |
| 156 | |
| 157 | // Fetch current item |
| 158 | func (q *QueueIterator) Fetch() (interface{}, errors.Error) { |