Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To be 100% clear: the std::async example I gave uses threads. Don't confuse a specific OO API with the general concept. Even vintage pthreads allow returning values on thread join.

And of course you would run multiple concurrent operations on separate threads.

edit: and of course futures are completely orthogonal to threads vs async/await. You can use them with either.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: