I need to make a wrapper for this function (from j...
# announcements
d
I need to make a wrapper for this function (from java 3rd party library):
Copy code
@Nullable
  V get(@NonNull K key, @NonNull Function<? super K, ? extends V> mappingFunction);
My current implementation doesn't seem to be right (the IDE is still using the original function and not mine...):
Copy code
inline fun <reified K, V> Cache<in K, V>.get(key: K, crossinline mapping: suspend (K) -> V?): V? =
	get(key) { runBlocking(<http://Dispatchers.IO|Dispatchers.IO>) { mapping(key) } }
What could be wrong?