Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Abortable Actions
An abortable action is sent to the server and executed normally unless the component that created the action is invalid before the action is sent to the server.
A non-abortable action is always sent to the server and can't be aborted in the queue.
If an action response returns from the server and the associated component is now invalid, the logic has been executed on the server but the action callback isn’t executed. This is true whether or not the action is marked as abortable.
Marking an Action as Abortable
Mark a server-side action as abortable by using the setAbortable() method on the Action object in JavaScript. For example:
1var action = cmp.get("c.serverEcho");
2action.setAbortable();