This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

PreemptProtect

PreemptProtect[expr]
evaluates expr, without any interruption from preemptive evaluations.
  • Preemptive evaluations can occur as a result of Dynamic, Button, EventHandler and other interface constructs, as well as preemptive MathLink connections.
Premptive evaluations can be executed in the midst of a main loop evaluation:
Protect the main loop evaluation from being interrupted:
Premptive evaluations can be executed in the midst of a main loop evaluation:
In[1]:=
Click for copyable input
Out[1]=
Protect the main loop evaluation from being interrupted:
In[3]:=
Click for copyable input
Out[3]=
New in 7