<table><tr><td style="">sandsmark created this revision.<br />sandsmark added reviewers: ngraham, Frameworks, broulik.<br />sandsmark added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />sandsmark requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28770">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Not entirely sure about this approach (and the stuff to get the test working), but I use kunitconversion in mangonel and the blocking behavior annoyed me a lot.</p>

<p>A simpler approach would be to just try to check and download the cache immediately, but still force wait in the foreground, but the code (at least behavior) gets a lot more complex, especially with threading.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The tests pass, it gets the currencies fairly quickly but doesn't block the UI thread.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R292 KUnitConversion</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28770">https://phabricator.kde.org/D28770</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/CMakeLists.txt<br />
autotests/convertertest.cpp<br />
autotests/convertertest.h<br />
autotests/valuetest.cpp<br />
autotests/valuetest.h<br />
src/currency.cpp<br />
src/currency_p.h</div></div></div><br /><div><strong>To: </strong>sandsmark, ngraham, Frameworks, broulik<br /><strong>Cc: </strong>broulik, ngraham, kde-frameworks-devel, Frameworks, LeGast00n, cblack, michaelh, bruns<br /></div>