cancel action in runtime mode

hi, how can i do to canecl an action in runtime mode. in my form i add a button to cancel the last action, witch code can i write in this button

Loader.
Up arrow icon