Expand description
Runtime module 运行时模块
§Overview / 概述
This module provides the main runtime implementation that brings together the scheduler, driver, and timer components.
本模块提供了主要的运行时实现,将调度器、驱动和定时器组件组合在一起。
§Example / 示例
ⓘ
use hiver_runtime::Runtime;
fn main() -> std::io::Result<()> {
let runtime = Runtime::new()?;
runtime.block_on(async {
println!("Hello from Hiver!");
});
Ok(())
}Structs§
- Handle
- Spawning handle for the runtime 运行时的生成句柄
- Runtime
- The async runtime / 异步运行时
- Runtime
Builder - Runtime builder / 运行时构建器
- Runtime
Config - Runtime configuration / 运行时配置