/// Creates a new task manager instance.
Creates a new task manager instance.
Creates a new task manager instance .
pub fn new(max_tasks: usize, capacity: usize, completion_events_buffer_size: usize) -> TaskManager {
        let (completion_event_queue_sender, completion_event_queue_receiver) =
            mpsc::channel(completion_events_buffer_size);
        TaskManager {
            tasks: slab::Slab::with_capacity(capacity),
            completion_event_queue_sender,
            completion_event_queue_receiver,
            max_tasks,
        }
    }
pub fn new ( max_tasks : usize , capacity : usize , completion_events_buffer_size : usize ) -> TaskManager { let ( completion_event_queue_sender , completion_event_queue_receiver ) = mpsc :: channel ( completion_events_buffer_size ) ; TaskManager { tasks : slab :: Slab :: with_capacity ( capacity ) , completion_event_queue_sender , completion_event_queue_receiver , max_tasks , } }
Creates a new task manager instance.
Creates a new task manager instance .
max_tasks
usize
capacity
usize
completion_events_buffer_size
usize