Skip to content
Commit 983a0bc5 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Prefer QThreadPool over QtConcurrent where we don't care about result

QtConcurrent::run()'s return type is marked with [[nodiscard]], which is
not nice to code that just needs to move some tasks to a worker thread.

On the other hand, QThreadPool satisfies our needs too and Qt doesn't
need to construct futures that we won't use.

One remark about the screenshot plugin: the task lambda is mutable so it
cannot be represented using a std::function.
parent a2ef5cb1
Pipeline #364314 passed with stage
in 12 minutes and 32 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment