Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRoutinesAndWaitForFinish ¶
func CreateRoutinesAndWaitForFinish(num int, f func())
CreateRoutinesAndWaitForFinish creates num of goroutines which all execute f() and wait for them to finish.
Types ¶
type BroadcastChan ¶
type BroadcastChan struct {
// contains filtered or unexported fields
}
func NewBroadcastChan ¶
func NewBroadcastChan(subscriberNum int) *BroadcastChan
func (*BroadcastChan) Broadcast ¶
func (b *BroadcastChan) Broadcast()
func (*BroadcastChan) Close ¶
func (b *BroadcastChan) Close()
func (*BroadcastChan) TotalHungChan ¶
func (b *BroadcastChan) TotalHungChan() <-chan struct{}
func (*BroadcastChan) Wait ¶
func (b *BroadcastChan) Wait() bool
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func (*Counter) IncreaseTotal ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) PushBackList ¶
Click to show internal directories.
Click to hide internal directories.