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