| 8 | ) |
| 9 | |
| 10 | type TaskExecutor interface { |
| 11 | Schedule(task Task, delay time.Duration) (ScheduledTask, error) |
| 12 | ScheduleWithFixedDelay(task Task, initialDelay time.Duration, delay time.Duration) (ScheduledTask, error) |
| 13 | ScheduleAtFixedRate(task Task, initialDelay time.Duration, period time.Duration) (ScheduledTask, error) |
| 14 | IsShutdown() bool |
| 15 | Shutdown() chan bool |
| 16 | } |
| 17 | |
| 18 | type SimpleTaskExecutor struct { |
| 19 | nextSequence int |
no outgoing calls
no test coverage detected