Module RuntimeBuild

Module RuntimeBuild 

Source
Expand description

§RuntimeBuild - Advanced Runtime Scheduler Initialization

Constructs the Echo async scheduler with telemetry integration and feature flags.

§Build Profiles

  • Debug: Single-threaded for easier debugging
  • Development: Multi-threaded with work-stealing
  • Release: Optimized multi-threaded with CPU count workers

§Feature Flags

  • Debug: Verbose scheduler logging
  • Telemetry: OTEL integration for task metrics

§Defensive Coding

  • Panic safety with bounded worker counts
  • Resource cleanup on initialization failure
  • Configuration validation

Structs§

SchedulerConfig
Scheduler configuration for different build profiles

Functions§

Build
Build the Echo scheduler for async task execution
BuildDebug
Build minimal debug scheduler (single-threaded)
BuildWithConfig
Build scheduler with custom configuration
CreateBuilder
Create configured scheduler builder