some concurrency additions (#2698)

This commit is contained in:
fourtf
2021-05-01 13:38:58 +02:00
committed by GitHub
parent 345bcdb963
commit 8b3f301c50
10 changed files with 84 additions and 54 deletions
+1
View File
@@ -720,6 +720,7 @@ void TwitchChannel::loadRecentMessages()
.arg(getSettings()->twitchMessageHistoryLimit);
NetworkRequest(url)
.concurrent()
.onSuccess([weak = weakOf<Channel>(this)](auto result) -> Outcome {
auto shared = weak.lock();
if (!shared)