AsyncDolls.AsyncDollsScript.Invoke C# (CSharp) Method

Invoke() static private method

static private Invoke ( List actions, int currentIndex ) : System.Threading.Tasks.Task
actions List
currentIndex int
return System.Threading.Tasks.Task
        static Task Invoke(List<Func<Func<Task>, Task>> actions, int currentIndex = 0)
        {
            if (currentIndex == actions.Count)
                return Task.CompletedTask;

            var action = actions[currentIndex];
            return action(() => Invoke(actions, currentIndex + 1));
        }

Same methods

AsyncDollsScript::Invoke ( List actions, int currentIndex ) : void