https://kotlinlang.org logo
#rx
Title
# rx
s

Sam

10/03/2019, 6:48 PM
Hello everyone, I have some logical want to be done by rx When user click on button download, I will call API to download file by RxKotlin, But if the user click on button multiple time while app’s downloading file, it will not call API until finish download file. So what operate I should use for this logic ? Thanks
t

trevjones

10/03/2019, 10:44 PM
button.enabled = false
s

Sam

10/04/2019, 8:07 AM
Thanks
@trevjones My purpose is avoid global or local variable to reduce complexity.
u

ursus

10/05/2019, 10:49 PM
or flatMapDrop
👍 1
🎉 1