DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Binary/Initialize/RuntimeBuild/BuildDebug.rs
1//! Single-worker scheduler for debugging. Predictable execution order
2//! makes step-through and trace inspection tractable. Compile-time
3//! gated to the `Debug` feature.
4
5#[cfg(feature = "Debug")]
6use std::sync::Arc;
7
8#[cfg(feature = "Debug")]
9use Echo::Scheduler::Scheduler::Scheduler;
10
11#[cfg(feature = "Debug")]
12use crate::{
13 Binary::Initialize::RuntimeBuild::{BuildWithConfig, SchedulerConfig},
14 dev_log,
15};
16
17#[cfg(feature = "Debug")]
18pub fn Fn() -> Arc<Scheduler> {
19 dev_log!("lifecycle", "[RuntimeBuild] Creating debug scheduler (single-threaded)");
20
21 BuildWithConfig::Fn(SchedulerConfig::Struct { WorkerCount:Some(1), ..Default::default() })
22}