Austin.LibTaskNet.CoopScheduler.AddTask C# (CSharp) Method

AddTask() public static method

Creates a new task and schedules it to run.
public static AddTask ( Func task ) : void
task Func
return void
        public static void AddTask(Func<Task> task)
        {
            StartTask();
            sCallbacks.Add(new Tuple<SendOrPostCallback, object>(_ => task().ContinueWith(CompleteTask), null));
        }