load cache files async

This commit is contained in:
fourtf
2019-08-20 20:08:49 +02:00
parent 0b8e0ff7cf
commit 4713862620
5 changed files with 202 additions and 244 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ void Image::load()
NetworkRequest(this->url().string)
.concurrent()
.caller(&this->object_)
.quickLoad()
.cache()
.onSuccess([that = this, weak = weakOf(this)](auto result) -> Outcome {
auto shared = weak.lock();
if (!shared)