Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnboundedChan ¶
type UnboundedChan struct {
// contains filtered or unexported fields
}
UnboundedChan is a chan that could grow if the number of elements exceeds the capacity.
func NewUnboundedChan ¶
func NewUnboundedChan(capacity int) *UnboundedChan
NewUnboundedChan creates an instance of UnboundedChan.
func NewUnboundedChanWithQuota ¶ added in v1.11.16
func NewUnboundedChanWithQuota(capacity, quota int) *UnboundedChan
func (*UnboundedChan) Cap ¶ added in v1.11.16
func (ch *UnboundedChan) Cap() int
Cap returns the total capacity of chan.
func (*UnboundedChan) In ¶
func (ch *UnboundedChan) In() chan<- interface{}
In returns write-only chan
func (*UnboundedChan) Out ¶
func (ch *UnboundedChan) Out() <-chan interface{}
Out returns read-only chan
Click to show internal directories.
Click to hide internal directories.