We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e406b58 commit 3c362a2Copy full SHA for 3c362a2
queue/ring.go
@@ -135,7 +135,8 @@ func (rb *RingBuffer) Get() (interface{}, error) {
135
// Poll will return the next item in the queue. This call will block
136
// if the queue is empty. This call will unblock when an item is added
137
// to the queue, Dispose is called on the queue, or the timeout is reached. An
138
-// error will be returned if the queue is disposed or a timeout occurs.
+// error will be returned if the queue is disposed or a timeout occurs. A
139
+// non-positive timeout will block indefinitely.
140
func (rb *RingBuffer) Poll(timeout time.Duration) (interface{}, error) {
141
var (
142
n *node
0 commit comments