jinrongluo commented on pull request #338: URL: https://github.com/apache/incubator-eventmesh/pull/338#issuecomment-837585094
> This pr may solve this problem. But I would like to address some points: 1. Try your best to keep away the sleep calling in any case. In this context, you'd better make produce and consume in one case, when countdown latch is zero, you could call System.exit. 2. As for Runtime calling, you could replace it with context.registerShutdownHook() to delegate spring bean lifecycle management. Thanks @vongosling Using countdown latch is a good suggestion for avoiding Thread.sleep. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
