Skip to content

Instantly share code, notes, and snippets.

View Tagakov's full-sized avatar
🦊

Vladimir Tagakov Tagakov

🦊
View GitHub Profile
@Tagakov
Tagakov / Magic.kt
Last active May 23, 2017 20:02 — forked from nsk-mironov/Magic.kt
fun <T> magic(jobs: Observable<Completable>, hot: Observable<T>): Observable<T> {
return Observable.switchOnNext(jobs.map { it.andThen(hot) }.startWith(hot))
}