pub fn spawn_calls(&self) -> impl Iterator<Item = Spawn> {
        self.mains
            .iter()
            .zip(0..)
            .flat_map(move |(main, core)| {
                main.init
                    .iter()
                    .flat_map(move |init| {
                        init.args.spawn.iter().map(move |task| Spawn {
                            core,
                            priority: None,
                            task,
                        })
                    })
                    .chain(main.idle.iter().flat_map(move |idle| {
                        idle.args.spawn.iter().map(move |task| Spawn {
                            core,
                            priority: Some(0),
                            task,
                        })
                    }))
            })
            .chain(self.interrupts.values().flat_map(move |interrupt| {
                interrupt.args.spawn.iter().map(move |callee| Spawn {
                    core: interrupt.args.core,
                    priority: Some(interrupt.args.priority),
                    task: callee,
                })
            }))
            .chain(self.tasks.values().flat_map(move |task| {
                task.args.spawn.iter().map(move |callee| Spawn {
                    core: task.args.core,
                    priority: Some(task.args.priority),
                    task: callee,
                })
            }))
    }
/// Returns an iterator over all `spawn` calls
///
/// Each spawn call includes the priority of the task from which it's issued and the name of the
/// task that's spawned. A task may appear more that once in this iterator.
///
/// A priority of `None` means that this being called from `init`
Returns an iterator over all `spawn` calls
Each spawn call includes the priority of the task from which it's issued and the name of the
task that's spawned. A task may appear more that once in this iterator.

A priority of `None` means that this being called from `init`
Returns an iterator over all ` spawn ` calls Each spawn call includes the priority of the task from which it ' s issued and the name of the task that ' s spawned . A task may appear more that once in this iterator . A priority of ` None ` means that this being called from ` init `
pub fn spawn_calls(&self) -> impl Iterator<Item = Spawn> {
        self.mains
            .iter()
            .zip(0..)
            .flat_map(move |(main, core)| {
                main.init
                    .iter()
                    .flat_map(move |init| {
                        init.args.spawn.iter().map(move |task| Spawn {
                            core,
                            priority: None,
                            task,
                        })
                    })
                    .chain(main.idle.iter().flat_map(move |idle| {
                        idle.args.spawn.iter().map(move |task| Spawn {
                            core,
                            priority: Some(0),
                            task,
                        })
                    }))
            })
            .chain(self.interrupts.values().flat_map(move |interrupt| {
                interrupt.args.spawn.iter().map(move |callee| Spawn {
                    core: interrupt.args.core,
                    priority: Some(interrupt.args.priority),
                    task: callee,
                })
            }))
            .chain(self.tasks.values().flat_map(move |task| {
                task.args.spawn.iter().map(move |callee| Spawn {
                    core: task.args.core,
                    priority: Some(task.args.priority),
                    task: callee,
                })
            }))
    }
pub fn spawn_calls ( & self ) -> impl Iterator < Item = Spawn > { self . mains . iter ( ) . zip ( 0 .. ) . flat_map ( move | ( main , core ) | { main . init . iter ( ) . flat_map ( move | init | { init . args . spawn . iter ( ) . map ( move | task | Spawn { core , priority : None , task , } ) } ) . chain ( main . idle . iter ( ) . flat_map ( move | idle | { idle . args . spawn . iter ( ) . map ( move | task | Spawn { core , priority : Some ( 0 ) , task , } ) } ) ) } ) . chain ( self . interrupts . values ( ) . flat_map ( move | interrupt | { interrupt . args . spawn . iter ( ) . map ( move | callee | Spawn { core : interrupt . args . core , priority : Some ( interrupt . args . priority ) , task : callee , } ) } ) ) . chain ( self . tasks . values ( ) . flat_map ( move | task | { task . args . spawn . iter ( ) . map ( move | callee | Spawn { core : task . args . core , priority : Some ( task . args . priority ) , task : callee , } ) } ) ) }
Returns an iterator over all `spawn` calls
Each spawn call includes the priority of the task from which it's issued and the name of the
task that's spawned.
Returns an iterator over all ` spawn ` calls Each spawn call includes the priority of the task from which it ' s issued and the name of the task that ' s spawned .
&self
&self