41 void MonadicFuturesTest::testFunctor ()
48 QTimer::singleShot (0, &loop, SLOT (quit ()));
49 return std::to_string (val);
54 QCoreApplication::processEvents ();
56 QCOMPARE (res.result (), std::string {
"20" });
59 void MonadicFuturesTest::testFunctorReady ()
63 auto res = Util::MakeReadyFuture<int> (10) *
66 QTimer::singleShot (0, &loop, SLOT (quit ()));
67 return std::to_string (val);
72 QCoreApplication::processEvents ();
74 QCOMPARE (res.result (), std::string {
"10" });