Versions in this module Expand all Collapse all v1 v1.0.3 Feb 2, 2021 Changes in this version + type TaskRes struct + CostTime float64 + Err error + Result chan interface{} + func DoTask(fn func() interface{}) *TaskRes + func DoTaskWithArgs(fn func(args ...interface{}) interface{}, args ...interface{}) *TaskRes + func DoTaskWithContext(ctx context.Context, fn func() interface{}, timeout time.Duration) *TaskRes + func DoTaskWithContextArgs(ctx context.Context, fn func(args ...interface{}) interface{}, ...) *TaskRes + func DoTaskWithTimeout(fn func() interface{}, timeout time.Duration) *TaskRes + func DoTaskWithTimeoutArgs(fn func(args ...interface{}) interface{}, timeout time.Duration, ...) *TaskRes