void StopCurrent() { if (current_task != null) { current_task.Stop(); current_task = null; current_task_value.Forget(); } }
/// <summary> /// タスクを呼び出しの終端処理。タスク実行中の未ハンドルな例外があったらログに出す /// </summary> /// <param name="task"></param> public static void FireAndForget(this UniTask task) { task.Forget(ex => { if (task.Status == AwaiterStatus.Canceled) { Debug.Log($"{task}キャンセル"); } else { Debug.LogException(ex); } }); }
public static void Away(this UniTask t) { t.Forget(Debug.LogException); }
public static void Away(this UniTask self) { self.Forget(Debug.LogException); }