livedata-ktx
livedata-ktx copied to clipboard
debounce() uses Handler which makes it difficult to test
The LiveData<T>.debounce(delayMillis: Long) extension relies on the Handler class, which makes view models difficult to test without Robolectric.
A possible solution is to wrap Handler with an interface and provide an API for overriding the default implementation. Something similar to RxJavaPlugins