Add adds an item to the queue.
(item T)
| 25 | type Queue[T any] interface { |
| 26 | // Add adds an item to the queue. |
| 27 | Add(item T) |
| 28 | // Get returns an item from the queue. |
| 29 | Get() (T, bool) |
| 30 | // GetOrWait returns an item from the queue or waits until an item is added. |
no outgoing calls