File indexing completed on 2024-05-05 09:56:36
0001 /* 0002 SPDX-FileCopyrightText: 2016 Ivan Cukic <ivan.cukic@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QCoreApplication> 0010 0011 template<typename T> 0012 inline void awaitFuture(const QFuture<T> &future) 0013 { 0014 while (!future.isFinished()) { 0015 QCoreApplication::processEvents(); 0016 } 0017 }