diff options
Diffstat (limited to 'common/clientapi.cpp')
-rw-r--r-- | common/clientapi.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/common/clientapi.cpp b/common/clientapi.cpp index 260b6b8..190bb57 100644 --- a/common/clientapi.cpp +++ b/common/clientapi.cpp | |||
@@ -6,14 +6,8 @@ | |||
6 | namespace async | 6 | namespace async |
7 | { | 7 | { |
8 | void run(const std::function<void()> &runner) { | 8 | void run(const std::function<void()> &runner) { |
9 | //TODO use a job that runs in a thread? | ||
9 | QtConcurrent::run(runner); | 10 | QtConcurrent::run(runner); |
10 | |||
11 | // //FIXME we should be using a Job instead of a timer | ||
12 | // auto timer = new QTimer; | ||
13 | // timer->setSingleShot(true); | ||
14 | // QObject::connect(timer, &QTimer::timeout, runner); | ||
15 | // QObject::connect(timer, &QTimer::timeout, timer, &QObject::deleteLater); | ||
16 | // timer->start(0); | ||
17 | }; | 11 | }; |
18 | } // namespace async | 12 | } // namespace async |
19 | 13 | ||