Junior — Senior
Determining which thread create and subscribe operate on in RxJava
livecode
Task condition
It is necessary to determine in which thread the create operator and the subscribe handler will be executed if this code fragment is run from the main (UI) thread.
Observable.create<Int> {
it.onNext(0)
}
.subscribe {
println(it)
}