pi-async-runtime 0.1.5

单线程串行及并发异步运行时的静态组合
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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()),
    )
}