do we need to specify <Dispatchers.IO> to call ret...
# squarelibraries
m
do we need to specify Dispatchers.IO to call retrofit suspend methods ? It appear it uses Call<>, which uses its own scheduler. Am i right ?
z
Correct,
Call.await()
uses
Call.enqueue
, which uses the executor configured on your retrofit instance. https://github.com/square/retrofit/blob/master/retrofit/src/main/java/retrofit2/KotlinExtensions.kt