https://kotlinlang.org logo
#coroutines
Title
# coroutines
j

james

10/23/2019, 2:22 AM
can anyone point me in the right direction on a strategy for how I might use Flow's
debounce
to debounce text changes from an Android EditText? I've done this previously using RxJava but RxAndroid did the hard work there with
RxTextView.textChanges
.. I'm wondering how I can achieve this in the world of coroutines/flow
g

gildor

10/23/2019, 2:24 AM
did the hard work there with
RxTextView.textChanges
It provided by RxBinding, separate library that provide reactive extensions for Android Views. There is no such library for coroutines. But you can write own extension that does this using
callbackFlow
builder function
m

MiSikora

10/23/2019, 6:24 AM
There is a
Flow
library equivalent https://github.com/LDRAlighieri/Corbind
👍 6
j

james

10/23/2019, 11:04 PM
this library looks fantastic
5 Views