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 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
type ROnlyChan ¶
type ROnlyChan interface { Request() (dat struct{}) // the receive function - aka "My := <-MyROnlyChan" Try() (dat struct{}, open bool) // the multi-valued comma-ok receive function - aka "My, ok := <-MyROnlyChan" }
ROnlyChan represents a receive-only channel
type SCh ¶
type SCh struct {
// contains filtered or unexported fields
}
SCh is a supply channel
func MakeSupplyBuff ¶
MakeSupplyBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel
func MakeSupplyChan ¶
func MakeSupplyChan() *SCh
MakeSupplyChan returns a (pointer to a) fresh unbuffered supply channel
func (*SCh) Provide ¶
func (c *SCh) Provide(dat struct{})
Provide is the send function - aka "MyKind <- some "
type SChPatS ¶
type SChPatS struct {
// contains filtered or unexported fields
}
SChPatS is a supply channel
func MakeSupplyPatSBuff ¶
MakeSupplyPatSBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel
func MakeSupplyPatSChan ¶
func MakeSupplyPatSChan() *SChPatS
MakeSupplyPatSChan returns a (pointer to a) fresh unbuffered supply channel
func (*SChPatS) ProvidePatS ¶
func (c *SChPatS) ProvidePatS(dat []struct{})
ProvidePatS is the send function - aka "MyKind <- some PatS"
func (*SChPatS) RequestPatS ¶
func (c *SChPatS) RequestPatS() (dat []struct{})
RequestPatS is the receive function - aka "some PatS <- MyKind"