Skip to content

Commit

Permalink
feature: update concurrent module
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqi committed Nov 22, 2024
1 parent b04b43f commit 6fa75cb
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cn.sliew.milky.concurrent.thread;

import cn.sliew.milky.common.collect.ConcurrentReferenceHashMap;
import cn.sliew.milky.common.concurrent.RunnableWrapper;
import cn.sliew.milky.common.exception.Rethrower;
import cn.sliew.milky.concurrent.thread.policy.AbortPolicyWithReport;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -104,7 +106,11 @@ public void execute(Runnable command) {
try {
((RunnableWrapper) command).onRejection(ex);
} finally {
((RunnableWrapper) command).onAfter();
try {
((RunnableWrapper) command).onAfter();
} catch (Exception e) {
Rethrower.throwAs(e);
}
}
} else {
throw ex;
Expand Down

0 comments on commit 6fa75cb

Please sign in to comment.