({{, AsynchronousTasks[] 
returns a list of running asynchronous tasks.}})

OpenersNotesSection(Spacer1)Details

AsynchronousTasks returns a list of (RefLink[AsynchronousTaskObject, paclet:ref/AsynchronousTaskObject]) objects.

(RefLink[AsynchronousTaskObject, paclet:ref/AsynchronousTaskObject]) objects are created by functions such as (RefLink[URLFetchAsynchronous, paclet:ref/URLFetchAsynchronous]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Typically, there are no asynchronous tasks running:

AsynchronousTasks[]

Start a download and check the list of asynchronous tasks. If the server completes the request quickly, the task list could be empty:

URLFetchAsynchronous["http://exampledata.wolfram.com/5mb.dat",
If[#2==="data",MessageDialog["Download complete."]]&]
AsynchronousTasks[]

Once the dialog appears, the task will no longer be in the task list:

AsynchronousTasks[]

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

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Asynchronous Tasks, paclet:tutorial/AsynchronousTasks])}})}})