22 using namespace folly;
25 using eggs_t = std::runtime_error;
41 TEST(Interrupt, handleThenInterrupt) {
49 TEST(Interrupt, interruptThenHandle) {
57 TEST(Interrupt, interruptAfterFulfilNoop) {
66 TEST(Interrupt, secondInterruptNoop) {
76 TEST(Interrupt, futureWithinTimedOut) {
80 p.
getFuture().within(std::chrono::milliseconds(1));
85 TEST(Interrupt, semiFutureWithinTimedOut) {
void setInterruptHandler(F &&fn)
#define EXPECT_THROW(statement, expected_exception)
#define EXPECT_EQ(val1, val2)
—— Concurrent Priority Queue Implementation ——
FOLLY_ALWAYS_INLINE bool try_wait_for(const std::chrono::duration< Rep, Period > &timeout, const WaitOptions &opt=wait_options()) noexcept
void throw_exception() const
#define EXPECT_TRUE(condition)
std::enable_if< std::is_same< Unit, B >::value, void >::type setValue()
SemiFuture< T > getSemiFuture()
#define EXPECT_FALSE(condition)
TEST(SequencedExecutor, CPUThreadPoolExecutor)