It's only supported to use it for {@link Channel#write(Object,ChannelPromise)}.
Be aware that the returned {@link ChannelPromise} will not support most operations and should only be usedif you want to save an object allocation for every write operation. You will not be able to detect if the operation was complete, only if it failed as the implementation will call {@link ChannelPipeline#fireExceptionCaught(Throwable)} in this case.
Be aware this is an expert feature and should be used with care!
|
|
|
|
|
|
|
|
|
|