Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Clock ¶
type Clock struct {
C <-chan interface{}
// contains filtered or unexported fields
}
Clock sends the value given to the Send function after the delay specified in NewClock. Sending another value will restart the timer.
func NewClock ¶
NewClock constructs a new Clock with the given delay. Call Close to stop the clock's goroutine.
Click to show internal directories.
Click to hide internal directories.