Leon K
10/16/2019, 3:52 PMAPI
interface suspend
and return the data directly, without being wrapped in Call
)
but as soon as i try to do this, i get java.lang.IllegalArgumentException: Could not locate call adapter for class java.lang.Object.
any ideas? if i use the Call
wrapped way it worksDustin Lam
10/16/2019, 4:19 PMgildor
10/16/2019, 11:07 PMDustin Lam
10/16/2019, 11:09 PMursus
10/18/2019, 3:14 AMgildor
10/18/2019, 3:16 AMwhy is thatI didn’t get your question. Retrofit supports suspend functions out of the box now, no need to have any adapters. Rx requires adapter
Dustin Lam
10/18/2019, 3:18 AMgildor
10/18/2019, 3:25 AMDustin Lam
10/18/2019, 3:31 AMgildor
10/18/2019, 3:32 AMCall.await()