Closed andreacalia closed 4 years ago
Now the AsyncMaybe
implementation completely bypass the CompletableFuture
exception management and relies entirely on Maybe
s :smile:
The CompletableFuture
is still used to handle the async processing..
I will still make some small tweaks and then merge if you agree @michi42 :smile:
The case of Void is particularly complex since the
Maybe
interface will not accept it as a value.. Since behind the scenes anAsyncMaybe
is aCompletableFuture
, the API doesn't make the difference betweenVoid
orT
and null is always allowed.As an example, the following piece of code fails on the
.toMaybeBlocking()
since it is trying to assignnull
as a value of theMaybe
: