You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
runOnWorkThread 方法和runOnUIThread方法是同时进行的,怎么保证在主线程中查数据库的时候,子线程已经把网络请求结果都写到数据库里了?是不是换成下面的实现比较好,将runOnUIThread放到runOnWorkThread内部
`threadManager.runOnWorkThread(() -> {
// 保存网络请求结果至数据库
try {
saveCallResult(processResponse(response));
threadManager.runOnUIThread(() ->
// 重新从数据库中获取结果,防止从旧数据源中获取到加载网络前的数据
The text was updated successfully, but these errors were encountered: