Netty Principle 5: ChannelFuture and DefaultChannelPromise object parsing

1. Preface When learning Netty, you will certainly see these codes: //Start server listening ChannelFuture future = serverBootstrap.bind(7000).sync(); //close? future.channel().closeFuture().sync(); Question 1: the object returned by serverBootstrap.bind() is ChannelFuture. What is the effect of calling its syn ...

Posted on Thu, 07 Oct 2021 20:38:49 -0400 by pck76