RxDatabindings icon indicating copy to clipboard operation
RxDatabindings copied to clipboard

Why to make param scheduler in extension function .observe() Schedulers.io() by default

Open vigidroid opened this issue 4 years ago • 0 comments

If we use extension function observe(), Schedulers.io() will be applied by default. This means thread will be automatically switched without awareness if we do not go through the source code of this library, which does not make sense.

I suggest two ways below:

  1. make param scheduler = null by default, users will specific it while they wanna a switch.
  2. make rxDataBindingsScheduler nullable, therefore users have ability to disable scheduler globally.

vigidroid avatar Apr 11 '22 05:04 vigidroid