问题 I'm trying to learn async programming in C++. In Python, we have await , with which we can resume a function from that point, but in C++ future waits for the results and halts the next line of code. What if we don't want to get the result, but instead continue to the next line of code? How can I do this? 回答1: You can use std::future::wait_for to check if the task has completed execution, e.g. : if (future.wait_for(100ms) == std::future_status::ready) { // Result is ready. } else { // Do