Commit d73aece1 authored by yanzg's avatar yanzg

升级新版本

parent 2f790736
......@@ -38,7 +38,9 @@ public class YzgTimeout {
public static void timeOut(Class<?> cls, String message, Runnable runnable, Consumer<Long> consumer) {
timeHeart(TIME_OUT_DEFAULT, TIME_OUT_UNIT, TIME_OUT_TIP, runnable, (time) -> {
Log.error(cls, "%s超时,已经执行%d豪秒,正在等待执行完成", message, time);
consumer.accept(time);
if (consumer != null) {
consumer.accept(time);
}
});
}
......
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