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

Interface TaskExecutor

executor.go:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type 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
18type SimpleTaskExecutor struct {
19 nextSequence int

Implementers 3

Calls

no outgoing calls

Tested by

no test coverage detected