19 if (thread() && !thread()->isRunning()) {
27 if (thread() && thread()->isRunning()) {
35 if (thread() && thread()->isRunning()) {
36 return thread()->wait();
AsyncLauncher(QThread *thread, QObject *ptr=nullptr)
AsyncLauncher This is base constructor of the AsyncLauncher object.
bool run(const Job &action, bool wait=false)
run This method run the action function in the work thread of this object.
bool stop()
stop This method stop the work thread of this object.
bool waitForStop()
waitForStop This method wait for the thread of this object is stopped.
The Async class This is bundle of async templates and async wrappers.
std::function< bool()> Job
bool asyncLauncher(const Job &job, bool await=false, bool freaze=true) const
asyncLauncher This method invoke a job on the thread (using the asyncHandler method) of this object.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...