Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DChDot ¶
type DChDot struct {
// contains filtered or unexported fields
}
DChDot is a demand channel
func MakeDemandDotBuff ¶
MakeDemandDotBuff returns a (pointer to a) fresh buffered (with capacity cap) demand channel
func MakeDemandDotChan ¶
func MakeDemandDotChan() *DChDot
MakeDemandDotChan returns a (pointer to a) fresh unbuffered demand channel
func (*DChDot) ProvideDot ¶
ProvideDot is the send function - aka "MyKind <- some Dot"
func (*DChDot) RequestDot ¶
RequestDot is the receive function - aka "some Dot <- MyKind"
type DotChan ¶
type DotChan interface { DotROnlyChan // aka "<-chan" - receive only DotSOnlyChan // aka "chan<-" - send only }
DotChan represents a bidirectional channel
type DotROnlyChan ¶
type DotROnlyChan interface { RequestDot() (dat *dot.Dot) // the receive function - aka "MyDot := <-MyDotROnlyChan" TryDot() (dat *dot.Dot, open bool) // the multi-valued comma-ok receive function - aka "MyDot, ok := <-MyDotROnlyChan" }
DotROnlyChan represents a receive-only channel
type DotSOnlyChan ¶
type DotSOnlyChan interface {
ProvideDot(dat *dot.Dot) // the send function - aka "MyKind <- some Dot"
}
DotSOnlyChan represents a send-only channel
Click to show internal directories.
Click to hide internal directories.