Standard async/await and C++
June 24, 2022•51 words
JavaScript, Python:
- async: Make a promise (future)
- await: Wait for the promise
Similar concept in C++:
- future: Make a promise (future)
- co_await: Wait for the promise
Another concept in C++:
- std::async: Make a promise (future) in a thread
- .wait(): Wait for the thread to finish(?)