Join Slack
Powered by
Perhaps, rather than directly using suspendCancell...
# coroutines
t
tateisu
11/13/2018, 9:44 PM
Perhaps, rather than directly using suspendCancellableCoroutine {}, I think that it is safer to await () after creating Deferred
https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter/blob/master/src/main/java/com/jakewharton/retrofit2/adapter/kotlin/coroutines/CoroutineCallAdapterFactory.kt#L87
👍 1
g
gildor
11/14/2018, 12:26 AM
I'm not sure that this somehow safer
5
Views
Open in Slack
Previous
Next