qt5base-lts/tests/auto/concurrent
Jarek Kobus cc0be95ac7 QtConcurrent: Provide a test for runWithPromise with handlers
Test runWithPromise with "then" and "onCanceled" handlers.
Test the case when QFuture::cancel() is being called when
the task's thread already started, so that a call to
QPromise::isCanceled() from inside the running thread
returns different values in the same task's run. This nicely
proves that communication between QFuture and QPromise
works between different threads.

Task-number: QTBUG-84868
Change-Id: Icb2e0b1f99e2dcd919d881515f1ccd08e2f25b8c
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2020-10-30 10:14:48 +01:00
..
qtconcurrentfilter Workaround gcc compiler bug 2020-10-29 14:03:38 +01:00
qtconcurrentiteratekernel CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentmap Workaround gcc compiler bug 2020-10-29 14:03:38 +01:00
qtconcurrentmedian CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtconcurrentrun QtConcurrent: Provide a test for runWithPromise with handlers 2020-10-30 10:14:48 +01:00
qtconcurrenttask QtConcurrent: Handle running with promise inside QTaskBuilder 2020-10-28 15:38:52 +01:00
qtconcurrentthreadengine Store std::exception_ptr in QUnhandledException 2020-10-26 14:27:02 +01: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
testhelper_functions.h Move file of test helpers out of directory for qtconcurrentmap tests 2020-10-16 18:49:01 +02:00