Hamza
04/05/2018, 3:51 AMHamza
04/05/2018, 3:51 AMkastork
04/05/2018, 5:47 PMJuan
04/05/2018, 8:12 PMedvin
04/06/2018, 7:20 AMcarlw
04/06/2018, 2:27 PMJuan
04/06/2018, 3:52 PMRuckus
04/06/2018, 4:09 PMJuan
04/06/2018, 4:10 PMthomasnield
04/06/2018, 10:38 PMthomasnield
04/06/2018, 10:38 PMaltavir
04/07/2018, 2:07 PMToggleButton
selected
property and when I toggle it I want to some asynchronous action to run, the action could be either successful or unsuccessful. If the action is failed, then I want the button to be automatically unclicked. The problem is that I can't update the clicked state without notifying the listener and starting the action again. I can solve it with intermediate states and checking if button state corresponds to the internal state, but I wonder if there is a common way to treat such situation.mikehearn
04/07/2018, 2:32 PMmikehearn
04/07/2018, 2:32 PMthomasnield
04/07/2018, 5:55 PMthomasnield
04/08/2018, 8:27 PMthomasnield
04/08/2018, 8:27 PMpike
04/09/2018, 2:49 AMedvin
04/09/2018, 9:55 AMmikehearn
04/09/2018, 12:16 PMkastork
04/09/2018, 2:27 PMedvin
04/09/2018, 7:32 PMRuckus
04/09/2018, 7:51 PMpike
04/10/2018, 12:37 AMondrej
04/10/2018, 1:37 AMpike
04/10/2018, 2:29 AMpike
04/10/2018, 2:30 AMimage.png▾
ondrej
04/10/2018, 2:32 AMpike
04/10/2018, 2:34 AMpike
04/10/2018, 2:35 AMlistOfStuff.forEach {
runAsync {
callApi
} ui {
updateToUi
}
}