public class ChannelFutures extends Object
ChannelFutures.| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<io.netty.channel.Channel> |
toCompletableFuture(io.netty.channel.ChannelFuture channelFuture)
Convert a
ChannelFuture into a CompletableFuture. |
public static CompletableFuture<io.netty.channel.Channel> toCompletableFuture(io.netty.channel.ChannelFuture channelFuture)
ChannelFuture into a CompletableFuture.channelFuture - the ChannelFutureCompletableFuture that completes successfully when the channelFuture completes successfully,
and completes exceptionally if the channelFuture completes with a ThrowableCopyright © 2017–2022 Apache Software Foundation. All rights reserved.