This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

AbortProtect

AbortProtect[expr]
evaluates expr, saving any aborts until the evaluation is complete.
Protect part of a computation from early termination:
Make sure that an iteration is finished in a time-constrained computation:
Without AbortProtect, typically imax is updated, but not x:
Protect part of a computation from early termination:
In[1]:=
Click for copyable input
Out[1]=
 
Make sure that an iteration is finished in a time-constrained computation:
In[1]:=
Click for copyable input
Out[1]=
Without AbortProtect, typically imax is updated, but not x:
In[2]:=
Click for copyable input
Out[2]=
New in 2