fn weighted_runtime_new_inner(options: RuntimeOptions) -> pi_result::Result<WeightedRuntime> {
let clock = ManualClock::new()?;
// 拒绝无效选项后才创建会存续到进程退出的原生分配。
options.executor.validate()?;
ConcurrentRuntime::with_components_and_queues(
clock,
DefaultIdlePolicy,
NoHooks,
options,
RuntimeQueues::default().with_external(WeightedSerialParQueue::new()),
)
}