| 16 | } |
| 17 | |
| 18 | type SimpleTaskExecutor struct { |
| 19 | nextSequence int |
| 20 | isShutdown bool |
| 21 | executorMu sync.RWMutex |
| 22 | timer *time.Timer |
| 23 | taskWaitGroup sync.WaitGroup |
| 24 | taskQueue ScheduledTaskQueue |
| 25 | newTaskChannel chan *ScheduledRunnableTask |
| 26 | rescheduleTaskChannel chan *ScheduledRunnableTask |
| 27 | taskRunner TaskRunner |
| 28 | shutdownChannel chan chan bool |
| 29 | } |
| 30 | |
| 31 | func NewDefaultTaskExecutor() TaskExecutor { |
| 32 | return NewSimpleTaskExecutor(NewDefaultTaskRunner()) |
nothing calls this directly
no outgoing calls
no test coverage detected