netty5/transport/src
Xiaoyan Lin a5006c1969 Add a EventLoopGroup.register(ChannelPromise)
Motivation:

EventLoopGroup.register doesn't need the Channel paramter when ChannelPromise is provided as we can get the Channel from ChannelPromise. Resolves #2422.

Modifications:

- Add EventLoopGroup.register(ChannelPromise)
- Deprecate EventLoopGroup.register(Channel, ChannelPromise)

Result:

EventLoopGroup.register is more convenient as people only need to set one parameter.
2016-05-21 18:40:17 +02:00
..
main/java/io/netty Add a EventLoopGroup.register(ChannelPromise) 2016-05-21 18:40:17 +02:00
test/java/io/netty Add a EventLoopGroup.register(ChannelPromise) 2016-05-21 18:40:17 +02:00