Commit b8b78355 authored by yanzg's avatar yanzg

修复等待时间

parent 69ff1127
......@@ -194,6 +194,7 @@ public class BeanDao {
private void timeOut(Class<?> cls, String name, String message, Runnable runnable) {
final Ref<Boolean> isRun = new Ref<>(false);
ThreadHelper.runThread(() -> {
try {
long timeMax = 1000;
int timeUnit = 10;
long start = System.currentTimeMillis();
......@@ -206,6 +207,11 @@ public class BeanDao {
}
}
while (!isRun.value);
} catch (Exception ex) {
ex.printStackTrace();
} finally {
Log.info(cls, message + name + "完成");
}
});
runnable.run();
isRun.value = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment