({{, AsynchronousTaskObject["name",id,sessionid]
is an object that represents asynchronous evaluations from a particular asynchronous task.}})

OpenersNotesSection(Spacer1)Details

(RefLink[URLFetchAsynchronous, paclet:ref/URLFetchAsynchronous]) returns an AsynchronousTaskObject.

id is a serial number used to distinguish asynchronous tasks.

sessionid is the (RefLink[$SessionID, paclet:ref/$SessionID]) of the Wolfram System session where the AsynchronousTaskObject was created.

An AsynchronousTaskObject can be passed to (RefLink[StopAsynchronousTask, paclet:ref/StopAsynchronousTask]), (RefLink[StartAsynchronousTask, paclet:ref/StartAsynchronousTask]), and (RefLink[WaitAsynchronousTask, paclet:ref/WaitAsynchronousTask]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Start two long downloads:

task1=URLFetchAsynchronous["http://exampledata.wolfram.com/20mb.dat",
If[#2==="data",MessageDialog["Download #1 complete."]]&]
task2=URLFetchAsynchronous["http://exampledata.wolfram.com/20mb.dat",
If[#2==="data",MessageDialog["Download #2 complete."]]&]

Remove one of the download tasks using its AsynchronousTaskObject expression:

RemoveAsynchronousTask[task1]

The removed task will no longer be listed:

AsynchronousTasks[]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}})}})