Created
January 25, 2018 01:47
-
-
Save aasumitro/97ea5595fc01be1a87307c2fa223cd23 to your computer and use it in GitHub Desktop.
Splash Screen With ReactiveX
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 startTask() { | |
Observable.interval(3, TimeUnit.SECONDS) | |
.take(1) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.observeOn(Schedulers.newThread()) | |
.subscribe { onNextActivity() } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment