/// <summary> Yield return this to make CoRoutine wait until the other CoRoutine is alive. </summary> public static ICoData WaitUntilDone(IEnumerator <ICoData> newCoRoutine, CoSegment coSegment = CoSegment.Normal, CoTag coTag = default, uint coMask = 0) { ICoHandle coRoutine = RunCoRoutine(newCoRoutine, coSegment, coTag, coMask); return(new CoDataWaitUntilDone(coRoutine)); }
/// <summary> Yield return this to make CoRoutine wait until the other CoRoutine is alive. </summary> public static ICoData WaitUntilDone(ICoHandle coRoutine) { return(new CoDataWaitUntilDone(coRoutine)); }
internal CoDataWaitUntilDone(ICoHandle coRoutineToWaitFor) { CoRoutineToWaitFor = coRoutineToWaitFor; }