TaskRemove

TaskRemove[task]

terminates and removes the specified task.

Details

Examples

open allclose all

Basic Examples  (3)

Create a task:

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

Remove the task using TaskRemove:

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

Create a task:

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

Obtain the task's UUID:

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

Remove the task using its UUID:

In[3]:=
Click for copyable input
Out[3]=

Create several tasks:

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

Remove all tasks that are running:

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

Scope  (1)

See Also

TaskSuspend  TaskAbort  TaskObject  Tasks

Introduced in 2017
(11.2)