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:

Wolfram Research (1991), AbortProtect, Wolfram Language function, https://reference.wolfram.com/language/ref/AbortProtect.html.

Text

Wolfram Research (1991), AbortProtect, Wolfram Language function, https://reference.wolfram.com/language/ref/AbortProtect.html.

BibTeX

@misc{reference.wolfram_2021_abortprotect, author="Wolfram Research", title="{AbortProtect}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/AbortProtect.html}", note=[Accessed: 01-August-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_abortprotect, organization={Wolfram Research}, title={AbortProtect}, year={1991}, url={https://reference.wolfram.com/language/ref/AbortProtect.html}, note=[Accessed: 01-August-2021 ]}

CMS

Wolfram Language. 1991. "AbortProtect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AbortProtect.html.

APA

Wolfram Language. (1991). AbortProtect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AbortProtect.html