public ITask All(params Func <bool>[] funcs) { ITask[] tasks = new ITask[funcs.Length]; for (int i = 0; i < funcs.Length; i++) { tasks[i] = new SingleTask(funcs[i]); } Next = new AllTask(tasks); return(Next); }
/// <summary> /// 创建一个所有任务执行完才会继续执行下一个任务的队列任务 /// </summary> /// <param name="tasks"></param> /// <returns></returns> public ITask All(params ITask[] tasks) { Next = new AllTask(tasks); return(Next); }