Jaroslav
11/05/2018, 1:40 PMInteface T { suspend fun A: String}
Class S{
suspend fun B(){
val result = t.A()
}
}
I want to change fun A to return Deferred<String> object, but not sure how to change val result = t.A()
so the result would be the same as if A was suspend function.Joris PZ
11/05/2018, 2:05 PMval result = t.A().await()
is what you are looking for?Joris PZ
11/05/2018, 2:05 PMJaroslav
11/05/2018, 2:21 PMZach Klippenstein (he/him) [MOD]
11/05/2018, 5:47 PMasync
if they need it.Jaroslav
11/06/2018, 6:27 AM