GitHub user xiaoyifang added a comment to the discussion: 
invokeOnewayImpl是否有必要使用SemaphoreReleaseOnlyOnce?

> 能否直接使用try-catch-finally?在finally中进行release即可。

应该不能,   看原逻辑,正常release是在异步回调里执行的。    
如果在finally里释放,会造成提前释放。

GitHub link: 
https://github.com/apache/rocketmq/discussions/6848#discussioncomment-6066784

----
This is an automatically sent email for dev@rocketmq.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@rocketmq.apache.org

Reply via email to