Question: Is there a way to interrupt an ongoing action?


#1

Assuming there are 2 buttons: ButtonA and ButtonB, and also a widget Block

ButtonA is to resize Block to (width1, height1) in 40 seconds
ButtonB is to resize Block to (width2, height2) in 5 seconds

if now i click ButtonA, and then later I click ButtonB, i’m hoping I would get the result of “resize Block to (width2, height2) in 5 seconds”, but apparently it’s not, the ButtonA’s action won’t be interrupted until it completes

Anyone has any idea how to interrupt an ongoing action? thanks