Documentation ¶
Index ¶
Constants ¶
View Source
const ( //ResultFloat64 task flaot64 result ResultFloat64 = "float64" // ResultInt task int result ResultInt = "int" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaskAble ¶
type TaskAble interface { Name() string Exec() Result() <-chan TaskResult }
TaskAble can do as a task
type TaskResult ¶
type TaskResult struct { Result interface{} Type ResultType Error error From string }
TaskResult task result
func ConcurrentTasks ¶
func ConcurrentTasks(tasks []TaskAble, timeout time.Duration) []TaskResult
ConcurrentTasks concurrent exec task and block
Click to show internal directories.
Click to hide internal directories.