You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
Currently, we can only convert from Single<T> to ListenableFuture<T>. We can't convert from RxJava Completable to Single<Void> because the only valid type for a Void is null, and RxJava explicitly prevents having a Single with a null value.
There is a way to workaround this by just using a dummy object as the value of the Single,
But the above is pretty messy. It seems like it should be pretty straightforward to convert from Completable to ListenableFuture<Void> (or CompletableFuture<Void> for that matter).
Happy to take this on myself if this sounds reasonable!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, we can only convert from
Single<T>
toListenableFuture<T>
. We can't convert from RxJavaCompletable
toSingle<Void>
because the only valid type for aVoid
isnull
, and RxJava explicitly prevents having aSingle
with anull
value.There is a way to workaround this by just using a dummy object as the value of the
Single
,But the above is pretty messy. It seems like it should be pretty straightforward to convert from
Completable
toListenableFuture<Void>
(orCompletableFuture<Void>
for that matter).Happy to take this on myself if this sounds reasonable!
The text was updated successfully, but these errors were encountered: