What is the LibQ equivalent to std::async? More specifically: std::future<int> f = std::async([]{ // ... return 42; })); int i = f.get(); when the function blocks until f.get() returns with a value?
What is the LibQ equivalent to std::async? More specifically:
std::future f = std::async([]{
// ...
return 42;
}));
int i = f.get();
when the function blocks until f.get() returns with a value?