Home | History | Annotate | Download | only in time

Lines Matching refs:Ticker

9 // A Ticker holds a channel that delivers `ticks' of a clock
11 type Ticker struct {
16 // NewTicker returns a new Ticker containing a channel that will send the
20 // Stop the ticker to release associated resources.
21 func NewTicker(d Duration) *Ticker {
29 t := &Ticker{
42 // Stop turns off a ticker. After Stop, no more ticks will be sent.
45 func (t *Ticker) Stop() {
51 // the Ticker, be aware that without a way to shut it down the underlying
52 // Ticker cannot be recovered by the garbage collector; it "leaks".