Last active
September 15, 2017 11:20
-
-
Save aballano/b51f1e57767641c2d9549cc8ae6a009b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <T> Single<T>.doCompletableOnSuccess(function: (T) -> Completable): Single<T> = | |
flatMap { function(it).andThen(Single.just(it)) } | |
fun <T> Maybe<T>.doCompletableOnSuccess(function: (T) -> Completable): Maybe<T> = | |
flatMap { function(it).andThen(Maybe.just(it)) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment