Futures for C++11 at Facebook - Facebook Engineering

Futures are a pattern for expressing asynchronous computations in a natural and composable way. This blog post introduces Folly Futures, an implementation of futures for C++11 that we use at Facebook. Why asynchrony? Consider a service A that talks to another service B. If A blocks while waiting for a reply from B, then A [...]Read More...

19 Jun 2015 ... Futures for C++11 at Facebook. By Hans Fugal ... using folly::Promise; Promise< double> promise; Future<double> future = promise.getFuture();.

Lee mas