SecondsAsDuration is a simple shortcut for converting seconds represented as a float to a `time.Duration`.
(seconds float64)
| 8 | // SecondsAsDuration is a simple shortcut for converting seconds represented as |
| 9 | // a float to a `time.Duration`. |
| 10 | func SecondsAsDuration(seconds float64) time.Duration { |
| 11 | return time.Duration(seconds * float64(time.Second)) |
| 12 | } |
| 13 | |
| 14 | // TickerWithInitialTick is similar to `time.Ticker`, except that it fires once |
| 15 | // immediately upon initialization. It also respects context cancellation and |
no outgoing calls
searching dependent graphs…