mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
Allow to fetch data asynchronously
This commit is contained in:
parent
c3936cd4b6
commit
991c30943a
9 changed files with 410 additions and 125 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue