Class FutureUtil


  • public final class FutureUtil
    extends Object
    Utility class for future-related operations.
    • Method Detail

      • toFuture

        public static <T> CompletableFuture<T> toFuture​(io.netty.util.concurrent.Future<T> future)
        Translates the Netty Future to a CompletableFuture.
        Type Parameters:
        T - The result type of the future
        Parameters:
        future - The future to be translated
        Returns:
        The translated CompletableFuture