Package com.mewna.catnip.util
Class UnitHelper
java.lang.Object
com.mewna.catnip.util.UnitHelper
A horrible, ugly, no-good, very-bad hack, but it's necessary. In the
pagination classes (used for ex. batch message pagination), we have a
situation where we compose observables in a chain, then terminate by
returning an empty Observable<Unit>. The problem with this is that we
can't just shove a
null
into it, as that's illegal in Rx3 operators
because reasons. Returning a Completable isn't an option either because it's
really a Observable<T> | Observable<Unit>
return type, for reasons
I'd rather not try and work out since I didn't write that code.- Since:
- 3/8/20.
- Author:
- amy
-
Nested Class Summary
-
Field Summary
-
Method Summary
-
Field Details
-
UNIT
-