removing more warnings
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user