-
-
Save Tagakov/6268260c9a1de1b1ed297b6e98ddaf1f 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> magic(jobs: Observable<Completable>, hot: Observable<T>): Observable<T> { | |
return Observable.switchOnNext(jobs.map { it.andThen(hot) }.startWith(hot)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment