removing more warnings

This commit is contained in:
Vitor Pamplona
2026-03-28 14:24:13 -04:00
parent e8ba9a2d2f
commit cfa59dab01
11 changed files with 23 additions and 140 deletions
@@ -56,7 +56,7 @@ actual class LargeCache<K, V> : ICacheOperations<K, V> {
actual fun getOrCreate(
key: K,
builder: (K) -> V,
builder: (key: K) -> V,
): V {
val value = concurrentMap.get(key)
@@ -71,7 +71,7 @@ actual class LargeCache<K, V> : ICacheOperations<K, V> {
actual fun createIfAbsent(
key: K,
builder: (K) -> V,
builder: (key: K) -> V,
): Boolean =
runBlocking {
val value = concurrentMap.get(key)
@@ -65,7 +65,7 @@ actual class LargeCache<K, V> : ICacheOperations<K, V> {
actual fun getOrCreate(
key: K,
builder: (K) -> V,
builder: (key: K) -> V,
): V {
val existing = get(key)
if (existing != null) return existing
@@ -76,7 +76,7 @@ actual class LargeCache<K, V> : ICacheOperations<K, V> {
actual fun createIfAbsent(
key: K,
builder: (K) -> V,
builder: (key: K) -> V,
): Boolean {
val existing = get(key)
if (existing != null) return false