NewUnbounded returns a new instance of Unbounded.
()
| 46 | |
| 47 | // NewUnbounded returns a new instance of Unbounded. |
| 48 | func NewUnbounded() *Unbounded { |
| 49 | return &Unbounded{c: make(chan any, 1)} |
| 50 | } |
| 51 | |
| 52 | var errBufferClosed = errors.New("Put called on closed buffer.Unbounded") |
| 53 |
no outgoing calls