我找到了两种新的 promise 的方法
这种方式需要一个已存在的 channel 实例
该方法 protected
如果我可以在没有 channel 的情况下新建一个通用 promise ?
最佳答案
EventExecutor.newPromise()
。
另请参阅: http://netty.io/4.1/api/io/netty/util/concurrent/EventExecutor.html#newPromise()
关于java - 在 netty 4.1 中如何在没有 channel 的情况下新建一个 promise ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38952691/