ljluestc commented on issue #6572: URL: https://github.com/apache/dubbo/issues/6572#issuecomment-1608935712
为了确保 future 字段在被多个线程访问时的可见性和一致性,您可以将其声明为 volatile,或者使用适当的同步机制(如同步块或 Lock 对象)在 future 字段的写入和读取操作之间建立发生之前关系 。 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
