23 using namespace folly;
25 TEST(When, predicateFalse) {
27 auto thunk = [&] {
return makeFuture().thenValue([&](
auto&&) { i += 1; }); };
35 TEST(When, predicateTrue) {
37 auto thunk = [&] {
return makeFuture().thenValue([&](
auto&&) { i += 1; }); };
#define EXPECT_EQ(val1, val2)
—— Concurrent Priority Queue Implementation ——
Future< Unit > when(bool p, F &&thunk)
TEST(SequencedExecutor, CPUThreadPoolExecutor)
Future< typename std::decay< T >::type > makeFuture(T &&t)