https://www.cnblogs.com/qicosmos/p/3534211.html

https://bobjin.com/blog/c_cpp_docs/reference/en/cpp/thread/future/wait_for.html

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

https://www.cnblogs.com/chengyuanchun/p/5394843.html


使用下面的方法,回避成员函数问题。
std::future<int> f1 = std::async(std::launch::async, [](){ return 8; }); 
 
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄