Join Slack
Can I use `flow` to handle the `clickable` callback event? I need to debounce click. If one example...
# compose
c
Chachako
08/11/2021, 3:10 PM
Can I use
flow
to handle the
clickable
callback event? I need to debounce click. If one example will be grateful! 😄
j
Javier
08/11/2021, 3:24 PM
CallbackFlow can be used to transform callbacks into flow
i
Ian Lake
08/11/2021, 11:52 PM
What kind of clicks are you trying to debounce?
c
Chachako
08/12/2021, 5:35 AM
@Ian Lake
That is, when I click on the button multiple times, only one event is executed.
i
Ian Lake
08/12/2021, 1:35 PM
I know what a debounce is, I was asking what kind of events are important for you to debounce
c
Chachako
08/12/2021, 3:39 PM
I want to avoid repeating invoke some functions, such as I/O operations.
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by