Timer is an interface that types implement to schedule and receive OnTimer callbacks.
| 11 | // Timer is an interface that types implement to schedule and receive OnTimer |
| 12 | // callbacks. |
| 13 | type Timer interface { |
| 14 | OnTimer(t time.Time) |
| 15 | } |
| 16 | |
| 17 | // Queue is a time-sorted collection of Timer objects. |
| 18 | type Queue struct { |