18 void MonadicFuturesTest::testFunctor ()
25 QTimer::singleShot (0, &loop, SLOT (quit ()));
26 return std::to_string (val);
31 QCoreApplication::processEvents ();
33 QCOMPARE (res.result (), std::string {
"20" });
36 void MonadicFuturesTest::testFunctorReady ()
40 auto res = Util::MakeReadyFuture<int> (10) *
43 QTimer::singleShot (0, &loop, SLOT (quit ()));
44 return std::to_string (val);
49 QCoreApplication::processEvents ();
51 QCOMPARE (res.result (), std::string {
"10" });