18 #include <unordered_set> 23 using namespace folly;
27 auto cob = [&] { count++; };
30 .then([](
int) {
throw std::runtime_error(
"ensure"); })
37 TEST(Ensure, mutableLambda) {
38 auto set = std::make_shared<std::unordered_set<int>>();
43 .ensure([
set]()
mutable {
set->clear(); })
44 .thenValue([](
auto&&) {
throw std::runtime_error(
"ensure"); });
#define EXPECT_THROW(statement, expected_exception)
#define EXPECT_EQ(val1, val2)
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
TEST(SequencedExecutor, CPUThreadPoolExecutor)
Future< typename std::decay< T >::type > makeFuture(T &&t)