Class JdkFutureAdapters


  • @GwtIncompatible
    public final class JdkFutureAdapters
    extends java.lang.Object
    Utilities necessary for working with libraries that supply plain Future instances. Note that, whenever possible, it is strongly preferred to modify those libraries to return ListenableFuture directly.

    For interoperability between ListenableFuture and CompletableFuture, consider Future Converter.

    Since:
    10.0 (replacing Futures.makeListenable, which existed in 1.0)
    Author:
    Sven Mawson