Jacques Smuts
04/03/2019, 8:25 AMgildor
04/03/2019, 8:26 AMgildor
04/03/2019, 8:27 AMJacques Smuts
04/03/2019, 8:28 AMgildor
04/03/2019, 8:28 AMgildor
04/03/2019, 8:29 AMthat’s an api call to get the UUID from an endpoint. Converted the api calls to use coroutines by wrapping them in Deferred<>Why do you need Deferred in this case instead of suspend function?
Jacques Smuts
04/03/2019, 8:30 AMJacques Smuts
04/03/2019, 8:30 AMgildor
04/03/2019, 8:30 AMJacques Smuts
04/03/2019, 8:31 AMJacques Smuts
04/03/2019, 8:31 AMgildor
04/03/2019, 8:31 AMJacques Smuts
04/03/2019, 8:31 AMJacques Smuts
04/03/2019, 8:32 AMgildor
04/03/2019, 8:33 AMgildor
04/03/2019, 8:33 AMJacques Smuts
04/03/2019, 8:33 AMghedeon
04/03/2019, 8:34 AMsuspend
support is already in the retrofit snapshotJacques Smuts
04/03/2019, 8:34 AMJacques Smuts
04/03/2019, 8:36 AMJacques Smuts
04/03/2019, 8:37 AMgildor
04/03/2019, 8:40 AMapi.getUuid().await()
that it will be easy and exactly the same in terms of scopes, lifecycle, dispatchers etc, just remove Deferred<>
, remove `.await()`and add suspend
ghedeon
04/03/2019, 8:45 AMAsync
in the name will be redundant and that was the premise of this thread.gildor
04/03/2019, 8:46 AMSam
04/04/2019, 5:30 PMgildor
04/05/2019, 3:22 AMSam
04/05/2019, 4:37 PMgildor
04/05/2019, 11:59 PMSam
04/06/2019, 12:43 AM