dave08
07/28/2019, 2:07 PMmappingFunction
...:
@Nullable V get(@NonNull K key, @NonNull Function<? super K, ? extends V> mappingFunction);
I really don't know what could be wrong:
suspend inline fun <reified K : Any, reified V : Any> Cache<K, V>.get(key: K, crossinline mappingFunction: suspend (K) -> V): V? =
get(key) { runBlocking { mappingFunction(it) } }
it's probably related to the generics... 🤕Dominaezzz
07/28/2019, 2:33 PMDominaezzz
07/28/2019, 2:33 PMdave08
07/28/2019, 2:33 PMdave08
07/28/2019, 2:34 PMDominaezzz
07/28/2019, 2:35 PMdave08
07/28/2019, 2:35 PMDominaezzz
07/28/2019, 2:38 PMdave08
07/28/2019, 2:45 PM