NewTimer creates a new Timer that will send the current time on its channel after at least duration d.
(d time.Duration)
| 26 | // NewTimer creates a new Timer that will send the current time on its |
| 27 | // channel after at least duration d. |
| 28 | func NewTimer(d time.Duration) *Timer { |
| 29 | t := NewStoppedTimer() |
| 30 | addTimer(t, d) |
| 31 | return t |
| 32 | } |
| 33 | |
| 34 | // NewStoppedTimer creates a new stopped Timer. |
| 35 | func NewStoppedTimer() *Timer { |
searching dependent graphs…