Пример #1
0
        /// <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));
        }
Пример #2
0
 /// <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));
 }
Пример #3
0
 internal CoDataWaitUntilDone(ICoHandle coRoutineToWaitFor)
 {
     CoRoutineToWaitFor = coRoutineToWaitFor;
 }