MCPcopy Index your code
hub / github.com/codnect/chrono / SimpleTaskExecutor

Struct SimpleTaskExecutor

executor.go:18–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18type 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
31func NewDefaultTaskExecutor() TaskExecutor {
32 return NewSimpleTaskExecutor(NewDefaultTaskRunner())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected