akshay_b
12/11/2019, 7:47 AMsuspend fun getStoreMapping(country: String): List<Store> {
return client.getStoreMapping(country).stores
}
Currently, the only option I have is to use different method name, which calls the suspended function in runBlocking {}
like below -
fun getStoreMappingInJava(country: String): List<Store> {
return runBlocking { client.getStoreMapping(country).stores }
}
octylFractal
12/11/2019, 7:50 AM@JvmName
to the second one and have that workoctylFractal
12/11/2019, 7:51 AMoctylFractal
12/11/2019, 7:52 AMoctylFractal
12/11/2019, 7:58 AMpublic final class TestKt {
public static final java.lang.Object suspender(kotlin.coroutines.Continuation<? super kotlin.Unit>);
public static final void suspender();
}
looks good to megildor
12/11/2019, 12:18 PMAdam Powell
12/11/2019, 1:58 PMakshay_b
12/13/2019, 9:01 AM