perf[cache]: async load single cache

This commit is contained in:
godotg committed 2024-03-25 16:04:37 +08:00
1 parent cd1ae54fce
commit 34ac818752
1 file changed
+1 -1
@@ -60,7 +60,7 @@ public class SingleCache<V> {
try {
if (now > refreshTime) {
refreshTime = now + refreshDuration;
cache = supplier.get();
EventBus.asyncExecute(() -> cache = supplier.get());
}
} finally {
lock.unlock();