pub const fn new() -> Self {
        Self {
            curr_tid: 0,
            started: false,
            task_control_blocks: [None; MAX_TASKS],
            #[cfg(all(
                any(feature = "tasks_32", feature = "default"),
                not(any(feature = "tasks_16", feature = "tasks_8"))
            ))]
            contexts: arr![None; 32],

            #[cfg(all(feature = "tasks_16", not(feature = "tasks_32")))]
            contexts: arr![None; 16],

            #[cfg(all(feature = "tasks_8", not(feature = "tasks_32")))]
            contexts: arr![None; 8],

            active_tasks: 1,
            blocked_tasks: 0,
            is_preemptive: false,
            preempt_disable_count: 0,
        }
    }
/// Returns a new instance of `Scheduler`
Returns a new instance of `Scheduler`
Returns a new instance of ` Scheduler `
pub const fn new() -> Self {
        Self {
            curr_tid: 0,
            started: false,
            task_control_blocks: [None; MAX_TASKS],
            #[cfg(all(
                any(feature = "tasks_32", feature = "default"),
                not(any(feature = "tasks_16", feature = "tasks_8"))
            ))]
            contexts: arr![None; 32],
            #[cfg(all(feature = "tasks_16", not(feature = "tasks_32")))]
            contexts: arr![None; 16],
            #[cfg(all(feature = "tasks_8", not(feature = "tasks_32")))]
            contexts: arr![None; 8],
            active_tasks: 1,
            blocked_tasks: 0,
            is_preemptive: false,
            preempt_disable_count: 0,
        }
    }
pub const fn new ( ) -> Self { Self { curr_tid : 0 , started : false , task_control_blocks : [ None ; MAX_TASKS ] , # [ cfg ( all ( any ( feature " " feature " " ) not ( any ( feature " " feature " " ) ) ) ) ] contexts : arr ! [ None 32 ] , # [ cfg ( all ( feature " " not ( feature " " ) ) ) ] contexts : arr ! [ None 16 ] , # [ cfg ( all ( feature " " not ( feature " " ) ) ) ] contexts : arr ! [ None 8 ] , active_tasks : 1 , blocked_tasks : 0 , is_preemptive : false , preempt_disable_count : 0 , } }
Returns a new instance of `Scheduler`
Returns a new instance of ` Scheduler `