AbortProtect

AbortProtect[expr]

evaluates expr, saving any aborts until the evaluation is complete.

Details

Examples

Basic Examples  (2)

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:

Introduced in 1991
 (2.0)