Created
January 26, 2020 18:59
-
-
Save happy-bracket/f90bf112053084188dd82e19d53650ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val src: List<Single<Unit>> = ... | |
fun sink(result: Single<Unit>) { ... } | |
src.map { it.toObservable().k() } | |
.sequence(ObservableK.applicative()).fix() | |
.map { Unit } | |
.observable | |
.firstElement() | |
.also(::sink) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment