internal void Initialize(ILogger log) { var en = new CoroutineResultEnumerator( string.Format("Enumerator for '{0}'.", Coroutine.InstanceName), Coroutine.Execute().GetEnumerator()) { Log = log }; Enumerators = en; IsInitialized = true; }
public static ICoroutineResult Enumerable(IEnumerable <ICoroutineResult> enumerable, string name) { var result = new CoroutineResultEnumerator(string.Format("Enumerator for '{0}'.", name), enumerable.GetEnumerator()); return(result); }