I'm using library and handle event from library (for example onUpgrade
). The problem is that this event can be called very often, therefore I need handle my onUpgrade
event with debounce 3 seconds.
Please help me how can this be done? I used already Rx java debounce, but with edit text, and I don't understand how it can be applied to an event onUpgrade
from the library.
onUpgrage: (Data) -> Unit