File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
aedile-core/src/main/kotlin/com/sksamuel/aedile/core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,8 @@ class LoadingCache<K, V>(
181181 *
182182 * See full docs at [com.github.benmanes.caffeine.cache.LoadingCache.refresh].
183183 */
184- fun refresh (key : K ) {
185- cache.synchronous().refresh(key)
184+ suspend fun refresh (key : K ) {
185+ cache.synchronous().refresh(key).await()
186186 }
187187
188188 /* *
@@ -191,8 +191,8 @@ class LoadingCache<K, V>(
191191 *
192192 * See full docs at [com.github.benmanes.caffeine.cache.LoadingCache.refreshAll].
193193 */
194- fun refreshAll (keys : Collection <K >) {
195- cache.synchronous().refreshAll(keys)
194+ suspend fun refreshAll (keys : Collection <K >) {
195+ cache.synchronous().refreshAll(keys).await()
196196 }
197197
198198 private suspend fun scope (): CoroutineScope {
You can’t perform that action at this time.
0 commit comments