Expand description
§RuntimeBuild - Echo scheduler bring-up
Constructs the Echo async scheduler with the right worker count and telemetry knobs for the active build profile.
Layout (one export per file, file name = identity):
SchedulerConfig::Struct- tuning knobs with profile-awareDefault.CreateBuilder::Fn-SchedulerConfig→SchedulerBuilder.Build::Fn- default bring-up; CPU count workers.BuildWithConfig::Fn- bring-up from a customSchedulerConfig::Struct.BuildDebug::Fn- single-worker scheduler under theDebugfeature.
Profile cheat sheet:
- Debug: 1 worker, verbose logs.
- Development: CPU count workers, info logs.
- Release: CPU count workers, warn logs, telemetry.
TODO: zero callers as of 2026-05-02 - Binary::Main currently
creates the scheduler inline. Wire through this module when the
profile-aware build sites land.
Modules§
- Build
- Default scheduler bring-up: forward to
BuildWithConfig::FnwithSchedulerConfig::Struct::default(). The default adapts to the active build profile (CPU count workers, telemetry underTelemetry, log level byDebug/Development). - Build
Debug - Single-worker scheduler for debugging. Predictable execution order
makes step-through and trace inspection tractable. Compile-time
gated to the
Debugfeature. - Build
With Config - Construct an Echo scheduler from a custom
SchedulerConfig::Struct. Returns anArc<Scheduler>ready for use; emits lifecycle dev-log lines with feature-gated detail (Telemetry, Debug). - Create
Builder - Translate a
SchedulerConfig::Structinto a configured EchoSchedulerBuilder. Worker counts are clamped to[1, 256]so the caller can’t accidentally request 0 workers or oversaturate. - Scheduler
Config - Echo scheduler tuning knobs.
Defaultadapts to the active build profile: telemetry on underTelemetry, log level scales byDebug/Development, worker count isNone(= CPU count).