github.com/shuguocloud/go-zero@v1.3.0/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{})