PreemptProtect[expr]
evaluates expr, without any interruption from preemptive evaluations.


PreemptProtect
PreemptProtect[expr]
evaluates expr, without any interruption from preemptive evaluations.
Details

- Preemptive evaluations can occur as a result of Dynamic, Button, EventHandler, and other interface constructs, as well as preemptive WSTP connections.
- Any preemptive evaluation requested during the evaluation of PreemptProtect[expr] will be queued until the PreemptProtect is complete.
- PreemptProtect does not protect against explicit user aborts, or aborts generated by functions such as Abort, TimeConstrained, and MemoryConstrained.
Tech Notes
Related Guides
History
Text
Wolfram Research (2008), PreemptProtect, Wolfram Language function, https://reference.wolfram.com/language/ref/PreemptProtect.html.
CMS
Wolfram Language. 2008. "PreemptProtect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/PreemptProtect.html.
APA
Wolfram Language. (2008). PreemptProtect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PreemptProtect.html
BibTeX
@misc{reference.wolfram_2025_preemptprotect, author="Wolfram Research", title="{PreemptProtect}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/PreemptProtect.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_preemptprotect, organization={Wolfram Research}, title={PreemptProtect}, year={2008}, url={https://reference.wolfram.com/language/ref/PreemptProtect.html}, note=[Accessed: 08-August-2025]}