Dequeue element
()
| 8 | Enqueue(interface{}) error |
| 9 | // Dequeue element |
| 10 | Dequeue() (interface{}, error) |
| 11 | // DequeueOrWaitForNextElement dequeues an element (if exist) or waits until the next element gets enqueued and returns it. |
| 12 | // Multiple calls to DequeueOrWaitForNextElement() would enqueue multiple "listeners" for future enqueued elements. |
| 13 | DequeueOrWaitForNextElement() (interface{}, error) |
no outgoing calls