Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
A Counter tracks a running count and controls a goroutine that passes its value periodically to a Func.
The Func is also called when SIGUSR1 (or SIGINFO, on BSD) is received.
func (*Counter) Done ¶
func (c *Counter) Done()
Done tells a Counter to stop and waits for it to report its final value.
Click to show internal directories.
Click to hide internal directories.