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

RemoveScheduledTask

RemoveScheduledTask[obj]
remove the obj from the list of currently set tasks.
Create a task that removes itself:
Create a task:
Remove the timer:
Remove the timer automatically when it is not needed:
The second task was automatically removed:
Non-synchronized timers:
Better synchronization:
Create a task that removes itself:
In[1]:=
Click for copyable input
Out[1]=
 
Create a task:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
Remove the timer:
In[4]:=
Click for copyable input
Out[4]=
 
Remove the timer automatically when it is not needed:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
The second task was automatically removed:
In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
 
Non-synchronized timers:
In[1]:=
Click for copyable input
Out[1]=
Better synchronization:
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
New in 8