Abhijeetmishr commented on issue #6654: URL: https://github.com/apache/rocketmq/issues/6654#issuecomment-1534132745
> > > > @KitherRunner Why we should change the return type of the method from List to Array of Boolean ? > > > > > > > > > When CountDownLatch times out and continues to run, the executed tasks will not be canceled, and they can still run and add elements to the List > > > > > > No, when a Countdown Latch times out and continues to run, the executed tasks will not be canceled, but they will not be able to add elements to the List. This is what I found out I can be wrong. I think we have to look at it from different angle any suggestion @zhouxinyu. > > The later the return value List is used, the more obvious the effect. Tasks that have timed out can still be added to the List with elements. Just ensure that the return value remains the same after the timeout, and there's no problem okay thank you. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
