pteale
07/04/2019, 1:47 PMreturn async {
val newConsent = consent.copy(createdAt = getConsent()?.createdAt)
val uniqueId = getUniqueId().await()
val consentFromApi = userServiceApi.consentApiClient.putConsent(uniqueId, newConsent).await()
localStorageService.setConsent(consentFromApi)
}
Which should return a Deferred<Unit>gildor
07/04/2019, 2:32 PMpteale
07/04/2019, 2:37 PMgildor
07/04/2019, 2:37 PMlaunch
instead of async
pteale
07/04/2019, 2:38 PMgildor
07/04/2019, 2:39 PMDico
07/04/2019, 2:54 PMGlobalScope.async