Additional functionality related to this tutorial has been introduced in subsequent versions of the Wolfram Language. For the latest information, see Background and Scheduled Tasks.
Asynchronous Tasks
Asynchronous tasks run in the background and evaluate functions asynchronously when there is an event. Asynchronous tasks may run only until some work is completed, or they may be designed to run indefinitely. This tutorial describes how to interact with asynchronous tasks.
AsynchronousTasks[] | list running asynchronous tasks |
AsynchronousTaskObject["name",id,sessionid] | object representing an asynchronous task |
StopAsynchronousTask[asyncTask] | stop asynchronous evaluations from asyncTask |
StartAsynchronousTask[asyncTask] | resume asynchronous evaluations from asyncTask |
WaitAsynchronousTask[asyncTask] | wait for asyncTask to complete |
RemoveAsynchronousTask[asyncTask] | shut down asyncTask and remove it from the system |
You can list asynchronous tasks that are running. They will be removed from the list when they complete:
Restart the asynchronous evaluations, allowing you to see progress updates and get the response data:
Remove one of the download tasks using its AsynchronousTaskObject expression: