async-executor:异步执行器

时间:2021-05-13 22:16:12
【文件属性】:
文件名称:async-executor:异步执行器
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-13 22:16:12
Rust 异步执行器 异步执行器。 例子 use async_executor :: Executor; use futures_lite :: future; // Create a new executor. let ex = Executor :: new (); // Spawn a task. let task = ex. spawn ( async { println! ( "Hello world" ); }); // Run the executor until the task completes. future :: block_on (ex. run (task)); 执照 根据以下任一许可 Apache许可证2.0版( 或 ) MIT许可证( 或 ) 由您选择。 贡献 除非您明确声明,否则有意提交给您的包含在工作中的任何贡献(按照Apache-2.0许可的定义)
【文件预览】:
async-executor-master
----LICENSE-MIT(1023B)
----LICENSE-APACHE(11KB)
----rustfmt.toml(16B)
----.github()
--------workflows()
----tests()
--------drop.rs(3KB)
----src()
--------lib.rs(23KB)
----Cargo.toml(789B)
----benches()
--------executor.rs(2KB)
----examples()
--------priority.rs(2KB)
----.gitignore(19B)
----CHANGELOG.md(672B)
----README.md(1KB)

网友评论