填空題Retrofit2的方法之所以可以返回Call<T>是因?yàn)槠溆袃蓚€(gè)默認(rèn)的CallAdapter實(shí)現(xiàn),DefaultCallAdapterFactory和ExecutorCallAdapterFactory,Retrofit2會(huì)自動(dòng)判斷當(dāng)前運(yùn)行的平臺(tái),如果發(fā)現(xiàn)是Android平臺(tái)則使用(),其他情況使用另一個(gè)。

您可能感興趣的試卷