diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-05-14 18:46:15 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-05 12:09:59 +0200 |
commit | 79fd1cb2c631b6084bf10874205d27f5b53c907a (patch) | |
tree | 9a65c1a1422775092eb1b8ee2e44e8a29baa3b2b /tests/auto/gui | |
parent | c49728eb27be0f3f2eaaa77b0ed573f5d8705af1 (diff) |
Reuse the non blocking implementation for blocking one
Replace the implementation of blockingMappedReduced():
after calling non-blocking version of mappedReduced() we are getting
the future object, so we may call in sequence result(), which
will block and return the result when the all tasks are done.
The same is done with blockigMapped(), which calls blockingMappedReduced()
with a custom reduce function.
Looks like with this pattern we can reuse the non-blocking version
for implementing blocking version of mapped / filtered methods.
Task-number: QTBUG-83918
Change-Id: I7f240cfbd04834d551ff79d717b72194a26996d7
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests/auto/gui')
0 files changed, 0 insertions, 0 deletions