【发布时间】:2015-01-21 22:16:30
【问题描述】:
netty 上的sync 和await 方法有什么区别?都阻塞当前线程?
谢谢
【问题讨论】:
-
@MarounMaroun 这可能就是问题所在 - 那些文档写得不好,并且会导致大多数人问为什么同步和等待方法似乎做同样的事情。跨度>
-
没错,我阅读了那些文档,但无法理解其中的区别。
-
区别不就是“and rethrow the cause of the failure if this future failed”吗?
标签: netty