android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
552 stars 268 forks source link

Mistake at section 9 #111

Open orcchg opened 3 years ago

orcchg commented 3 years ago

It says

Remove the Call wrapper from the return type. Here we're returning String, 
but you could return complex json-backed type as well. If you still wanted 
to provide access to Retrofit's full Result, you can return Result<String> 
instead of String from the suspend function.

but basically there is no type Result in Retrofit. This should be Response instead.