Skip to main content

build_serve_runtime

Function build_serve_runtime 

Source
pub fn build_serve_runtime() -> Runtime
Expand description

The CLI’s tokio runtime: the same multi-thread + io + time runtime #[tokio::main] builds, except when serve_core_set is Some — then the worker pool is sized to the core set and ONE start hook pins every newly-spawned runtime thread. Tokio delivers the hook to the worker threads AND to blocking-pool threads (the blocking pool clones the runtime’s after_start callback — see the module docs), so both populations pin through slot_pin_target.