2

C++-架构之路

 1 year ago
source link: https://hx-w.github.io/article/12ad/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

我的c++架构之路-1

feature

当在一个线程中,创建了一个异步操作(asynchronous operations)时,该异步操作会返回一个feature对象,可以通过其访问异步操作的状态和结果等。

创建异步操作一般有三种方式:std::asyncstd::packaged_taskstd::promise


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK