Allow to fetch data asynchronously

This commit is contained in:
Vladimir Golovnev (Glassez) 2022-11-14 20:45:08 +03:00
commit 991c30943a
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
9 changed files with 410 additions and 125 deletions

View file

@ -443,7 +443,7 @@ namespace BitTorrent
template <typename Func>
void invoke(Func &&func)
{
QMetaObject::invokeMethod(this, std::forward<Func>(func));
QMetaObject::invokeMethod(this, std::forward<Func>(func), Qt::QueuedConnection);
}
void invokeAsync(std::function<void ()> func);