Hello, with retrofit with coroutines what class is...
# squarelibraries
s
Hello, with retrofit with coroutines what class is the response of a @post call?? Response? only for now the call have finished or its void function? thx.
g
Return tyoe depends on your Rest service, used call adapter and your use case. What exactly do you want to achieve?
s
I want somthing like Completable of RxJava
:S
g
For suspend function in Reteofit?
s
yep...
g
You just didn't mention coroutines or suspend functions in your request
Just use Unit (there is no Void in Kotlin)
s
fuck sorry that why i wrote in #coroutines the question xD
g
Ah, I see, I thought that it was in general
Just return Unit or omit return tyoe (which is implicitly Unit)
s
ok thx
that is all i need to know