You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/10/16 07:36:04 UTC

[GitHub] [rocketmq] qingmg opened a new issue #1537: 官网文档 Simple Example 章节异步的代码案例运行会出异常

qingmg opened a new issue #1537: 官网文档 Simple Example 章节异步的代码案例运行会出异常
URL: https://github.com/apache/rocketmq/issues/1537
 
 
   如题意,在 http://rocketmq.apache.org/docs/simple-example/ 中 2.2 的代码案例,在循环结束后,会直接 shutdown 其中的 producer 实例,并没有等待消息先发出去,导致异常。
   而在源码中,是实例化了一个 CountDownLatch 对象,执行了其中的 await 方法。
   
   希望有空的话可以更新下官网中的文档。

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services