Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++threads and async basicsSingle-choice MCQ

With std::launch::deferred, when does the supplied function actually execute?

auto f = std::async(std::launch::deferred, []{ return compute(); }); // ... other work ... int v = f.get();