go-zero/core/executors/vars.go
2021-02-19 12:03:05 +08:00

9 lines
163 B
Go

package executors
import "time"
const defaultFlushInterval = time.Second
// Execute defines the method to execute tasks.
type Execute func(tasks []interface{})