walking98 commented on a change in pull request #510: [ISSUE478]Polish async 
send message sample
URL: https://github.com/apache/rocketmq/pull/510#discussion_r229674858
 
 

 ##########
 File path: 
example/src/main/java/org/apache/rocketmq/example/simple/AsyncProducer.java
 ##########
 @@ -55,6 +61,7 @@ public void onException(Throwable e) {
                 e.printStackTrace();
             }
         }
+        countDownLatch.await(5, TimeUnit.SECONDS);
 
 Review comment:
   LGTM.
   btw, I am wondering if we can improve internally in product for the 
AsyncProducer.java, that will make users easier to use. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to