func ToTask(job JobIndexed, args ...interface{}) *Task {
	return &Task{
		Job:      job,
		subIndex: 0,
		args:     args,
		onEnd:    nil,
		result:   nil,
		err:      nil,
	}
}
// ToTask wrap Task with JobIndexed struct and args
ToTask wrap Task with JobIndexed struct and args
// ToTask wrap Task with JobIndexed struct and args
func ToTask(job JobIndexed, args ...interface{}) *Task {
	return &Task{
		Job:      job,
		subIndex: 0,
		args:     args,
		onEnd:    nil,
		result:   nil,
		err:      nil,
	}
}
func ToTask ( job JobIndexed , args ... interface { } ) * Task { return & Task { Job : job , subIndex : 0 , args : args , onEnd : nil , result : nil , err : nil , } }
ToTask wrap Task with JobIndexed struct and args
ToTask wrap Task with JobIndexed struct and args