4.1 阻塞执行器
01-阻塞执行器 — Comprehensive Rust
1分钟内可阅读完
译文 · 基于 Comprehensive Rust
原文链接: https://google.github.io/comprehensive-rust/concurrency/async-pitfalls.html
Async / await 为并发异步编程提供了方便且高效的抽象。不过,Rust 的 async/await 模型也有其陷阱与易踩坑点。本章举例说明其中一些。
本小节约需 55 分钟。内容包括:
| 内容 | 时长 |
|---|---|
| 阻塞执行器 | 10 分钟 |
Pin | 20 分钟 |
| 异步 Trait | 5 分钟 |
| 取消 | 20 分钟 |
01-阻塞执行器 — Comprehensive Rust
02-Pin — Comprehensive Rust
03-异步 Trait — Comprehensive Rust
04-取消 — Comprehensive Rust