Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnySChan ¶
type AnySChan interface { AnySROnlyChan // aka "<-chan" - receive only AnySSOnlyChan // aka "chan<-" - send only }
AnySChan represents a bidirectional channel
type AnySROnlyChan ¶
type AnySROnlyChan interface { RequestAnyS() (dat []interface{}) // the receive function - aka "MyAnyS := <-MyAnySROnlyChan" TryAnyS() (dat []interface{}, open bool) // the multi-valued comma-ok receive function - aka "MyAnyS, ok := <-MyAnySROnlyChan" }
AnySROnlyChan represents a receive-only channel
type AnySSOnlyChan ¶
type AnySSOnlyChan interface {
ProvideAnyS(dat []interface{}) // the send function - aka "MyKind <- some AnyS"
}
AnySSOnlyChan represents a send-only channel
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 interface{})
Provide is the send function - aka "MyKind <- some "
type DChAnyS ¶
type DChAnyS struct {
// contains filtered or unexported fields
}
DChAnyS is a demand channel
func MakeDemandAnySBuff ¶
MakeDemandAnySBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandAnySChan ¶
func MakeDemandAnySChan() *DChAnyS
MakeDemandAnySChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChAnyS) ProvideAnyS ¶
func (c *DChAnyS) ProvideAnyS(dat []interface{})
ProvideAnyS is the send function - aka "MyKind <- some AnyS"
func (*DChAnyS) RequestAnyS ¶
func (c *DChAnyS) RequestAnyS() (dat []interface{})
RequestAnyS is the receive function - aka "some AnyS <- MyKind"
type ROnlyChan ¶
type ROnlyChan interface { Request() (dat interface{}) // the receive function - aka "My := <-MyROnlyChan" Try() (dat interface{}, 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 interface{})
Provide is the send function - aka "MyKind <- some "
type SChAnyS ¶
type SChAnyS struct {
// contains filtered or unexported fields
}
SChAnyS is a supply channel
func MakeSupplyAnySBuff ¶
MakeSupplyAnySBuff returns a (pointer to a) fresh buffered (with capacity cap) supply channel
func MakeSupplyAnySChan ¶
func MakeSupplyAnySChan() *SChAnyS
MakeSupplyAnySChan returns a (pointer to a) fresh unbuffered supply channel
func (*SChAnyS) ProvideAnyS ¶
func (c *SChAnyS) ProvideAnyS(dat []interface{})
ProvideAnyS is the send function - aka "MyKind <- some AnyS"
func (*SChAnyS) RequestAnyS ¶
func (c *SChAnyS) RequestAnyS() (dat []interface{})
RequestAnyS is the receive function - aka "some AnyS <- MyKind"