Jan Stoltman
05/27/2019, 9:48 AM//Declaration
fun <K,V>cache(getNew: suspend () -> List<Pair<K, V>>)
//Usage
cache(::getAllChannelsFromApi)
When compiling for Android everything works fine, but on iOS I get Type mismatch: inferred type is KSuspendFunction0<List<Pair<Int, Channel>>> but suspend () -> List<Pair<Int, Channel>> was expected
Dominaezzz
05/27/2019, 10:12 AMolonho
05/27/2019, 10:20 AMJan Stoltman
05/27/2019, 10:27 AM