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
type DChElement ¶
type DChElement struct {
// contains filtered or unexported fields
}
DChElement is a demand channel
func MakeDemandElementBuff ¶
func MakeDemandElementBuff(cap int) *DChElement
MakeDemandElementBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandElementChan ¶
func MakeDemandElementChan() *DChElement
MakeDemandElementChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChElement) ProvideElement ¶
func (c *DChElement) ProvideElement(dat *list.Element)
ProvideElement is the send function - aka "MyKind <- some Element"
func (*DChElement) RequestElement ¶
func (c *DChElement) RequestElement() (dat *list.Element)
RequestElement is the receive function - aka "some Element <- MyKind"
func (*DChElement) TryElement ¶
func (c *DChElement) TryElement() (dat *list.Element, open bool)
TryElement is the comma-ok multi-valued form of RequestElement and reports whether a received value was sent before the Element channel was closed.
type DChElementS ¶
type DChElementS struct {
// contains filtered or unexported fields
}
DChElementS is a demand channel
func MakeDemandElementSBuff ¶
func MakeDemandElementSBuff(cap int) *DChElementS
MakeDemandElementSBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandElementSChan ¶
func MakeDemandElementSChan() *DChElementS
MakeDemandElementSChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChElementS) ProvideElementS ¶
func (c *DChElementS) ProvideElementS(dat []*list.Element)
ProvideElementS is the send function - aka "MyKind <- some ElementS"
func (*DChElementS) RequestElementS ¶
func (c *DChElementS) RequestElementS() (dat []*list.Element)
RequestElementS is the receive function - aka "some ElementS <- MyKind"
func (*DChElementS) TryElementS ¶
func (c *DChElementS) TryElementS() (dat []*list.Element, open bool)
TryElementS is the comma-ok multi-valued form of RequestElementS and reports whether a received value was sent before the ElementS channel was closed.
type DChListS ¶
type DChListS struct {
// contains filtered or unexported fields
}
DChListS is a demand channel
func MakeDemandListSBuff ¶
MakeDemandListSBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandListSChan ¶
func MakeDemandListSChan() *DChListS
MakeDemandListSChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChListS) ProvideListS ¶
ProvideListS is the send function - aka "MyKind <- some ListS"
func (*DChListS) RequestListS ¶
RequestListS is the receive function - aka "some ListS <- MyKind"
type ElementChan ¶
type ElementChan interface { ElementROnlyChan // aka "<-chan" - receive only ElementSOnlyChan // aka "chan<-" - send only }
ElementChan represents a bidirectional channel
type ElementROnlyChan ¶
type ElementROnlyChan interface { RequestElement() (dat *list.Element) // the receive function - aka "MyElement := <-MyElementROnlyChan" TryElement() (dat *list.Element, open bool) // the multi-valued comma-ok receive function - aka "MyElement, ok := <-MyElementROnlyChan" }
ElementROnlyChan represents a receive-only channel
type ElementSChan ¶
type ElementSChan interface { ElementSROnlyChan // aka "<-chan" - receive only ElementSSOnlyChan // aka "chan<-" - send only }
ElementSChan represents a bidirectional channel
type ElementSOnlyChan ¶
type ElementSOnlyChan interface {
ProvideElement(dat *list.Element) // the send function - aka "MyKind <- some Element"
}
ElementSOnlyChan represents a send-only channel
type ElementSROnlyChan ¶
type ElementSROnlyChan interface { RequestElementS() (dat []*list.Element) // the receive function - aka "MyElementS := <-MyElementSROnlyChan" TryElementS() (dat []*list.Element, open bool) // the multi-valued comma-ok receive function - aka "MyElementS, ok := <-MyElementSROnlyChan" }
ElementSROnlyChan represents a receive-only channel
type ElementSSOnlyChan ¶
type ElementSSOnlyChan interface {
ProvideElementS(dat []*list.Element) // the send function - aka "MyKind <- some ElementS"
}
ElementSSOnlyChan represents a send-only channel
type ListSChan ¶
type ListSChan interface { ListSROnlyChan // aka "<-chan" - receive only ListSSOnlyChan // aka "chan<-" - send only }
ListSChan represents a bidirectional channel
type ListSROnlyChan ¶
type ListSROnlyChan interface { RequestListS() (dat []*list.List) // the receive function - aka "MyListS := <-MyListSROnlyChan" TryListS() (dat []*list.List, open bool) // the multi-valued comma-ok receive function - aka "MyListS, ok := <-MyListSROnlyChan" }
ListSROnlyChan represents a receive-only channel
type ListSSOnlyChan ¶
type ListSSOnlyChan interface {
ProvideListS(dat []*list.List) // the send function - aka "MyKind <- some ListS"
}
ListSSOnlyChan represents a send-only channel