Comments (3)
@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.
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.
How about Guava
's ListenableFuture adapter?
from reactor-addons.
Related Issues (20)
- Switch to Github Actions for CI
- Publish to artifactory using GHA
- Guava's ListenableFuture to Mono/Flux adapter HOT 2
- reactor.retry.Retry is incompatible with the reactor-core reactor.util.retry HOT 1
- pom is empty since split of publications for the gha release HOT 4
- RxJava3Adaptor.monoToSingle causes inconsistent behavior in IntegrationTest and real-world test HOT 4
- MathFlux sumBigDecimal looses scale of BigDecimal HOT 3
- 3.6.0 deprecated removal: CacheFlux and CacheMono
- Removing deprecated processors
- Move reactor.swing.SwtScheduler.java to reactor.swt.SwtScheduler.java HOT 2
- Deprecating reactor-extra's Swing/SwtScheduler (removal in 3.6.0) HOT 2
- Remove kotlin extensions (deprecated since 3.3.0)
- Deprecating Retry (removal in 3.6.0)
- 3.6.0 deprecated removal: Retry
- 3.6.0 deprecated removal: misc (swing/swt, ...)
- RxJava 3.1.x support HOT 8
- Make operators derived from MonoSubscriber either implement QueueSubscription or stop being Fuseable
- RxJava3Adapter.singleToMono() doesn't cascade dispose() calls up the chain to the RxJava disposable
- Suggest reactor version of semaphore implementation HOT 4
- Deprecate Repeat functionality HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactor-addons.