/// <summary> /// Called after the task is complete /// </summary> /// <param name="action"></param> /// <returns></returns> public UnityTask <TResult> ContinueWith(Action <UnityTask <TResult> > action) { if (IsCompleted) { action(this); } else { OnComplete.Add(action); } return(this); }