mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
13 lines
259 B
C
13 lines
259 B
C
#ifndef ASYNCEXEC_H
|
|
#define ASYNCEXEC_H
|
|
|
|
#include "QRunnable"
|
|
#include "QThreadPool"
|
|
#include "lambdaqrunnable.h"
|
|
#include "qcoreapplication.h"
|
|
|
|
#define async_exec(a) \
|
|
QThreadPool::globalInstance()->start(new LambdaQRunnable(a));
|
|
|
|
#endif // ASYNCEXEC_H
|