public LiveData<List<History>> getHistory(Context context, String queryType, long from, long to) {HistoryDataRepository.getInstance(context).getLocationHistory(queryType, from, to);}viewModel.getHistory(requireContext(), ConstantsHelper.
函数由于asyncio.sleep而不能传递到下一行。还有其余的代码,但我只共享3行代码。它解释了一切。控制台不会将0打印到控制台。async def getHistory(self): for parite in parite_list:
asyncio.create_task(parite.getHistory</em