23 using namespace folly;
25 TEST(AsyncFunc, manual_executor) {
26 auto x = std::make_shared<ManualExecutor>();
29 auto f =
async([] {
return 42; });
36 TEST(AsyncFunc, value_lambda) {
37 auto lambda = [] {
return 42; };
38 auto future =
async(lambda);
42 TEST(AsyncFunc, void_lambda) {
43 auto lambda = [] {
return; };
44 auto future =
async(lambda);
49 TEST(AsyncFunc, moveonly_lambda) {
50 auto lambda = [] {
return std::make_unique<int>(42); };
51 auto future =
async(lambda);
#define EXPECT_EQ(val1, val2)
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
std::shared_ptr< Executor > getCPUExecutor()
#define EXPECT_FALSE(condition)
void setCPUExecutor(std::weak_ptr< Executor > executor)
TEST(SequencedExecutor, CPUThreadPoolExecutor)