Esempio n. 1
0
 /// <summary>
 /// Creates a continuation task that starts when a set of specified tasks has completed.
 /// </summary>
 /// <param name="p_tasks"></param>
 /// <param name="p_continuationAction"></param>
 /// <returns></returns>
 public void ContinueWhenAll(UnityTask[] p_tasks, Action <UnityTask[]> p_continuationAction)
 {
     m_factory.ContinueWhenAll(p_tasks, p_continuationAction);
 }
Esempio n. 2
0
 /// <summary>创建一个延续任务,该任务在一组指定的任务完成后开始。</summary>
 /// <param name="tasks">继续执行的任务所在的数组。</param>
 /// <param name="continuation">
 ///   在 <paramref name="tasks" /> 数组中的所有任务完成时要执行的操作委托。
 /// </param>
 /// <returns>新的延续任务。</returns>
 /// <exception cref="T:System.ObjectDisposedException">
 ///   中的某个元素 <paramref name="tasks" /> 数组已被释放。
 /// </exception>
 /// <exception cref="T:System.ArgumentNullException">
 ///   <paramref name="tasks" /> 数组是 <see langword="null" />。
 ///
 ///   - 或 -
 ///
 ///   <paramref name="continuation" /> 参数为 <see langword="null" />。
 /// </exception>
 /// <exception cref="T:System.ArgumentException">
 ///   <paramref name="tasks" /> 数组为空或包含一个 null 值。
 /// </exception>
 public UnityTask <UnityTask <T> > ContinueWhenAll <T>(IList <UnityTask> tasks,
                                                       Func <IList <UnityTask>, IEnumerator> continuation)
 {
     return(_factory.ContinueWhenAll <T>(tasks, continuation));
 }