Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package tech.michalik.mvptesting
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
interface SchedulerProvider {
val main: Scheduler
val io: Scheduler
}
class AndroidSchedulerProvider : SchedulerProvider {
override val main: Scheduler
get() = AndroidSchedulers.mainThread()
override val io: Scheduler
get() = Schedulers.io()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment