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