Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Procedural Programming > Flow Control > AbortProtect >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF