PreemptProtect

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

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Preemptive evaluations can be executed in the midst of a main loop evaluation:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input

Protect the main loop evaluation from being interrupted:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Introduced in 2008
(7.0)