Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Dynamic Interactivity > Dynamic Interactivity Language > PreemptProtect >

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.
Preemptive evaluations can be executed in the midst of a main loop evaluation:
Protect the main loop evaluation from being interrupted:
Preemptive 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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF