executor:Rust的简约异步执行器

时间:2021-05-17 09:45:17
【文件属性】:
文件名称:executor:Rust的简约异步执行器
文件大小:26KB
文件格式:ZIP
更新时间:2021-05-17 09:45:17
Rust 执行者 [ dependencies ] executor = " 0.8 " 特征 #![no_std] + alloc 简单易学! (〜100行) 与WebAssembly一起使用 Web组装 use web :: * ; #[no_mangle] fn main () { executor :: run ( async { loop { set_inner_html (DOM_BODY, ":alarm_clock: tic" ); sleep ( 1000 ). await ; set_inner_html (DOM_BODY, ":alarm_clock: tock" ); sleep ( 1000 ). await ; } }); } 看到这个工作。 命令行界面 如果您添加
【文件预览】:
executor-master
----LICENSE-MIT(1KB)
----Cargo.toml(538B)
----Cargo.lock(14KB)
----src()
--------lib.rs(3KB)
----LICENSE-APACHE(11KB)
----examples()
--------async_std.rs(458B)
--------immediate.rs(598B)
--------helloworld.rs(427B)
--------timer()
----README.md(2KB)
----Makefile(38B)
----.gitignore(18B)

网友评论