DOCUMENTATION CENTER SEARCH
Mathematica
>
Flow Control
>
Built-in
Mathematica
Symbol
Interrupts and Aborts
Evaluation
Tutorials »
|
Abort
Check
See Also »
|
Flow Control
Package Bulletproofing
Package Development
More About »
AbortProtect
AbortProtect
[
expr
]
evaluates
expr
, saving any aborts until the evaluation is complete.
MORE INFORMATION
Aborts that are generated during an
AbortProtect
take effect as soon as the execution of the
AbortProtect
is over.
CheckAbort
can be used inside
AbortProtect
to catch and absorb any aborts that occur.
AbortProtect
also protects against aborts generated by
TimeConstrained
and
MemoryConstrained
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Protect part of a computation from early termination:
In[1]:=
Out[1]=
Make sure that an iteration is finished in a time-constrained computation:
In[1]:=
Out[1]=
Without
AbortProtect
, typically
imax
is updated, but not
x
:
In[2]:=
Out[2]=
SEE ALSO
Abort
Check
TUTORIALS
Interrupts and Aborts
Evaluation
MORE ABOUT
Flow Control
Package Bulletproofing
Package Development
New in 2
© 2008 Wolfram Research, Inc.