Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chan ¶
type Chan interface { ROnlyChan // aka "<-chan" - receive only SOnlyChan // aka "chan<-" - send only }
Chan represents a bidirectional channel
type DCh ¶
type DCh struct {
// contains filtered or unexported fields
}
DCh is a demand channel
func MakeDemandBuff ¶
MakeDemandBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandChan ¶
func MakeDemandChan() *DCh
MakeDemandChan returns a (pointer to a) fresh unbuffered demand channel
func (*DCh) Provide ¶
func (c *DCh) Provide(dat struct{})
Provide is the send function - aka "MyKind <- some "
type DChPatS ¶
type DChPatS struct {
// contains filtered or unexported fields
}
DChPatS is a demand channel
func MakeDemandPatSBuff ¶
MakeDemandPatSBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandPatSChan ¶
func MakeDemandPatSChan() *DChPatS
MakeDemandPatSChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChPatS) ProvidePatS ¶
func (c *DChPatS) ProvidePatS(dat []struct{})
ProvidePatS is the send function - aka "MyKind <- some PatS"
func (*DChPatS) RequestPatS ¶
func (c *DChPatS) RequestPatS() (dat []struct{})
RequestPatS is the receive function - aka "some PatS <- MyKind"
type PatSChan ¶
type PatSChan interface { PatSROnlyChan // aka "<-chan" - receive only PatSSOnlyChan // aka "chan<-" - send only }
PatSChan represents a bidirectional channel
type PatSROnlyChan ¶
type PatSROnlyChan interface { RequestPatS() (dat []struct{}) // the receive function - aka "MyPatS := <-MyPatSROnlyChan" TryPatS() (dat []struct{}, open bool) // the multi-valued comma-ok receive function - aka "MyPatS, ok := <-MyPatSROnlyChan" }
PatSROnlyChan represents a receive-only channel
type PatSSOnlyChan ¶
type PatSSOnlyChan interface {
ProvidePatS(dat []struct{}) // the send function - aka "MyKind <- some PatS"
}
PatSSOnlyChan represents a send-only channel