20 using namespace folly;
27 std::vector<Future<int>> fs;
33 std::vector<Future<Unit>> fs2 =
futures::map(fs, [&](
int i) { c +=
i; });
52 std::vector<Future<int>> fs;
58 std::vector<Future<Unit>> fs2 =
78 std::vector<SemiFuture<int>> fs;
84 std::vector<Future<Unit>> fs2 =
#define EXPECT_EQ(val1, val2)
—— Concurrent Priority Queue Implementation ——
PUSHMI_INLINE_VAR constexpr __adl::get_executor_fn executor
std::unordered_map< int64_t, VecT > Map
std::vector< Future< Result > > map(It first, It last, F func)
#define EXPECT_TRUE(condition)
std::enable_if< std::is_same< Unit, B >::value, void >::type setValue()
SemiFuture< T > getSemiFuture()
Future< std::vector< typename std::iterator_traits< InputIterator >::value_type::value_type > > collect(InputIterator first, InputIterator last)
TEST(SequencedExecutor, CPUThreadPoolExecutor)