Generate CallAdapter for making network requests. Convert retrofit2.Call<T>to Observable<T>object.
The constructor can configure the scheduler and select whether it is an asynchronous request. RxJava3CallAdapterFactory#createAsynchronous requests are configured by default.
RxJava3CallAdapterFactory#getThe object will be constructed RxJava3CallAdapterand returned to Retrofit when the network request is made.
RxJava3CallAdapter
RxJava3CallAdapter#adapt(Call<R> call)Convert standard retrofit2.Call<T>to Rxjava objects such as Observable<T>, Flowable<T>, Maybe<T>, Single<T>etc.
ObservableThe default object type generated by Retrofit is retrofit2.adapter.rxjava3.CallEnqueueObservableor CallExecuteObservable. Reference RxJava3CallAdapter#adapt(Call<R> call).
The RxJava3CallAdapter constructor determines the returned object type through several Boolean variables. This also represents com.squareup.retrofit2:adapter-rxjava3the supported Rxjava object types.