summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentreducekernel.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-09-29 16:50:01 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-10-30 10:14:48 +0100
commitcc0be95ac782c9cf0bf994d0af6e2966cf29f8fa (patch)
treec98680e4bf18f05f1825d903f89dc44eec56eb56 /src/concurrent/qtconcurrentreducekernel.h
parentcde42e2f762aa3fed1af7e26bbacc46deefc43bb (diff)
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>
Diffstat (limited to 'src/concurrent/qtconcurrentreducekernel.h')
0 files changed, 0 insertions, 0 deletions