I have a Java API that returns a Future
instance. I need to convert it to a Uni
.
From the mutiny documentation, I see it is possible to convert a CompletionStage
to Uni
, but I couldn't find how to convert a standard Future
to Uni
.
Q: How to convert java.util.concurrent.Future
to Uni
?
I understand that I can warp it's get()
call to Uni
, but it would be blocking, isn't it?