github.com/hduhelp/go-zero@v1.4.3/core/executors/vars.go (about) 1 package executors 2 3 import "time" 4 5 const defaultFlushInterval = time.Second 6 7 // Execute defines the method to execute tasks. 8 type Execute func(tasks []interface{})