美文网首页
[async_std]--2--Welcome to async

[async_std]--2--Welcome to async

作者: buddyCoder | 来源:发表于2020-03-11 16:12 被阅读0次

Welcome to async-std

async-std, along with its supporting libraries, is a library making your life in async programming easier. It provides fundamental implementations for downstream libraries and applications alike. The name reflects the approach of this library: it is as closely modeled to the Rust main standard library as possible, replacing all components by async counterparts.

async std及其支持库使您在异步编程中的生活更轻松。它为下游库和应用程序提供了基本实现。这个名称反映了这个库的方法:它尽可能地接近Rust主标准库,用异步对应项替换所有组件。

async-std provides an interface to all important primitives: filesystem operations, network operations and concurrency basics like timers. It also exposes a task in a model similar to the thread module found in the Rust standard lib. But it does not only include I/O primitives, but also async/await compatible versions of primitives like Mutex.

async std 提供了所有重要的原始的接口:文件系统操作、网络操作和并发基础(如计时器)。它还公开了与Rust标准库中的线程模块类似的模型中的任务。但它不仅包括I/O原语,还包括异步/等待兼容的原语版本,如互斥锁 Mutex。

相关文章

网友评论

      本文标题:[async_std]--2--Welcome to async

      本文链接:https://www.haomeiwen.com/subject/zyzcjhtx.html