Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer provides a first in first out non-blocking (but not lock free) Buffer.
func (*Buffer) Force ¶
func (q *Buffer) Force(item interface{})
Force will push the item onto the buffer and blocks until the operation completes.
func (*Buffer) Pop ¶
Pop returns the next value in the buffer. It returns ok == false if there is no value in the buffer.