Exemple #1
0
 public TaskManager(IEnumerable <T> tasks, Func <T, Task> taskFactory)
 {
     tasksQueue = new MinHeap <ScheduledTask <T> >(tasks.Select(t => new ScheduledTask <T>(t, taskFactory)));
 }
Exemple #2
0
 public TaskManager()
 {
     tasksQueue = new MinHeap <ScheduledTask <T> >(30);
 }