qt5base-lts/tests/auto/concurrent
Jarek Kobus 765f503b1e QtConcurrent: Introduce runWithPromise()
The differences to run() method:
1. The passed function should have additional
   argument QPromise<T> &, declared as a first argument.
2. The return value of the function must be void.
   Result reporting should be done through
   passed QPromise<T> &promise argument.
3. By default, runWithPromise() doesn't support functors
   with overloaded operator()().
   In case of overloaded functors the user
   needs to explicitly specify the result type
   as a template parameter passed to runWithPromise,
   like:

   struct Functor {
       void operator()(QPromise<int> &) { }
       void operator()(QPromise<double> &) { }
   };

   Functor f;

   runWithPromise<double>(f); // this will select the 2nd overload

Task-number: QTBUG-84702
Change-Id: Ie40d466938d316fc46eb7690e6ae0ce1c6c6d649
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-08-19 12:46:10 +02:00
..
qtconcurrentfilter Use QList instead of QVector in concurrent tests 2020-06-22 16:46:01 +02:00
qtconcurrentiteratekernel CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtconcurrentmap Use QList instead of QVector in concurrent tests 2020-06-22 16:46:01 +02:00
qtconcurrentmedian CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtconcurrentrun QtConcurrent: Introduce runWithPromise() 2020-08-19 12:46:10 +02:00
qtconcurrenttask CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qtconcurrentthreadengine CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
CMakeLists.txt QtConcurrent: add fluent interface to configure a task before run 2020-03-29 20:44:32 +01:00
concurrent.pro QtConcurrent: add fluent interface to configure a task before run 2020-03-29 20:44:32 +01:00