Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 559 Bytes

2-Under the Hood: Executing Futures and Tasks.md

File metadata and controls

3 lines (2 loc) · 559 Bytes

在这章中,我们将覆盖底层的结构,探究Future和异步任务怎样被调度的。如果你只对学习怎么使用已存在Future编写高层级的代码感兴趣,对Future怎么工作的细节不敢兴趣的话,你可以先跳到async/await章节去。然而,本章讨论的几个主题对理解async/await怎么工作,了解async/await代码的运行时和性能属性,构建异步原语是很有帮助的。如果你决定现在跳过这章,你应该在未来回到这里。

现在,让我们谈谈Future trait。