gxchan

package
v1.12.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 22

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) Len

func (ch *UnboundedChan) Len() int

Len returns the total length of chan

func (*UnboundedChan) Out

func (ch *UnboundedChan) Out() <-chan interface{}

Out returns read-only chan

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL