Last active
June 8, 2020 18:46
-
-
Save raulh82vlc/187c3ac93e6cf580fa7881d32656f164 to your computer and use it in GitHub Desktop.
TaskThreadingImpl for TaskThreading container of Schedulers and its usages
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
class TaskThreadingImpl @Inject constructor() : TaskThreading { | |
private val computationScheduler = Schedulers.computation() | |
private val ioScheduler = Schedulers.io() | |
private val mainScheduler = AndroidSchedulers.mainThread() | |
override fun ui(): Scheduler = mainScheduler | |
override fun io(): Scheduler = ioScheduler | |
override fun computation(): Scheduler = computationScheduler | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment