#ifndef ASYNC_CALL_H #define ASYNC_CALL_H #include #include class DoricAsyncCall { public: static void ensureRunInThreadPool(QThreadPool *threadPool, std::function lambda) { QtConcurrent::run(threadPool, lambda); } }; #endif // ASYNC_CALL_H