异步计时器:Rust异步故事的计时器功能-源码

上传者: 42118423 | 上传时间: 2021-02-16 20:09:08 | 文件大小: 26KB | 文件类型: ZIP
异步计时器 Rust异步故事的计时器功能 最低Rust版本:1.36 准确性 不依赖异步事件循环的常规计时器通常与tokio用户空间计时器处于同等水平。 如果这不适合您,则应启用基于事件循环的计时器,在大多数情况下,该计时器将为您提供在UNIX平台上可能最准确的计时器(请参阅功能)。 特征 tokio1使用tokio启用基于事件循环的计时器,从而在unix平台上提供更高分辨率的计时器。 c_wrapper使用C填充程序创建到平台API的绑定,该绑定可能比libc更可靠。 std启用std类型的使用(例如Error) stream -启用Stream实施Interval 例子 定时的 async fn job () { } async fn do_job () { let work = unsafe { async_timer :: Timed :: plat

文件下载

资源详情

[{"title":"( 22 个子文件 26KB ) 异步计时器:Rust异步故事的计时器功能-源码","children":[{"title":"async-timer-master","children":[{"title":"build.rs <span style='color:#111;'> 649B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"rust.yml <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tests","children":[{"title":"timed.rs <span style='color:#111;'> 604B </span>","children":null,"spread":false},{"title":"interval.rs <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"timer.rs <span style='color:#111;'> 859B </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"utils.rs <span style='color:#111;'> 870B </span>","children":null,"spread":false},{"title":"timed.rs <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"c_wrapper","children":[{"title":"posix.c <span style='color:#111;'> 408B </span>","children":null,"spread":false}],"spread":true},{"title":"state.rs <span style='color:#111;'> 8.21KB </span>","children":null,"spread":false},{"title":"interval.rs <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"timer","children":[{"title":"posix.rs <span style='color:#111;'> 6.97KB </span>","children":null,"spread":false},{"title":"win.rs <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"mod.rs <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"web.rs <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"apple.rs <span style='color:#111;'> 6.45KB </span>","children":null,"spread":false},{"title":"dummy.rs <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"async_tokio1.rs <span style='color:#111;'> 7.62KB </span>","children":null,"spread":false}],"spread":true},{"title":"lib.rs <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"Cargo.toml <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明