Giter Site home page Giter Site logo

Comments (3)

simonbasle avatar simonbasle commented on May 13, 2024

@rstoyanchev we think that this should probably go into Spring 5 rather than on Reactor side, wdyt?

@jansyk13 in the meantime if you want to go from ListenableFuture to Mono in Spring 4 then using Mono.create is probably the best bet. Or attempting to convert to CompletableFuture first ...

from reactor-addons.

rstoyanchev avatar rstoyanchev commented on May 13, 2024

Yes this would belong in the Spring Framework especially with Spring 5 using Reactor as a core dependency for the reactive support.

Note in the Spring Framework we've had since 4.2 a CompletableToListenableFutureAdapter so you can wrap the following in a convenient utility method:

Mono.fromFuture(new CompletableToListenableFutureAdapter(listenableFuture));

I'm wondering also what you are using that returns ListenableFuture? For example in Spring 5 we have a WebClient that returns Mono and Flux as the core type. That will be an alternative to the AsyncRestTempate which returns ListenableFuture and it's something you can try out already.

from reactor-addons.

kevinten10 avatar kevinten10 commented on May 13, 2024

How about Guava's ListenableFuture adapter?

from reactor-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.