mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 02:05:54 +00:00
18 lines
322 B
C++
18 lines
322 B
C++
/*
|
|
SPDX-FileCopyrightText: 2016 Ivan Cukic <ivan.cukic@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QCoreApplication>
|
|
|
|
template<typename T>
|
|
inline void awaitFuture(const QFuture<T> &future)
|
|
{
|
|
while (!future.isFinished()) {
|
|
QCoreApplication::processEvents();
|
|
}
|
|
}
|