Hexa
03/16/2019, 8:40 PMGlobalScope.async { "testCarId" }
part seems weird to me I tried returns "testCarId"
but I'm getting an incompatible type erroroleksiyp
03/16/2019, 11:44 PMHexa
03/17/2019, 9:03 AMparseCarAsync()
is just an async function that returns a string parseCarAsync(test1: String, test2: String) = GlobalScope.async{
// make expensive network call here
//return@async return some string here
}
oleksiyp
03/17/2019, 9:03 AMGlobalScope.async { "something" }
should be exactly what you want. Why there is any doubts about it ?Hexa
03/17/2019, 10:21 AMGlobalScope.async { "something" }
syntax just looks weird, why can't I just return Deferred("testCardId") or use any subclass that extends Deferredoleksiyp
03/17/2019, 10:24 AMHexa
03/17/2019, 10:35 AM