Skip to main content

spawn_kernel_with_scheduler_and_run_sync

Function spawn_kernel_with_scheduler_and_run_sync 

Source
pub fn spawn_kernel_with_scheduler_and_run_sync<F, R>(
    scheduler: SchedulerManager,
    callback: F,
) -> impl Future<Output = R>
where F: FnOnce(&mut Locked<Unlocked>, &mut CurrentTask) -> R + Send + Sync + 'static, R: Send + Sync + 'static,
Expand description

Create a Kernel object with a custom SchedulerManager and run the given synchronous callback.