RemoveAsynchronousTask[asyncTask]
stops asynchronous evaluations and removes asyncTask from the system.
RemoveAsynchronousTask
RemoveAsynchronousTask[asyncTask]
stops asynchronous evaluations and removes asyncTask from the system.
Details
- asyncTask must be an active AsynchronousTaskObject, as returned by functions like AsynchronousTasks.
- Removing an asynchronous task prevents asynchronous evaluations but does not necessarily stop the asynchronous task immediately.
Examples
Basic Examples (1)
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[]History
Text
Wolfram Research (2012), RemoveAsynchronousTask, Wolfram Language function, https://reference.wolfram.com/language/ref/RemoveAsynchronousTask.html.
CMS
Wolfram Language. 2012. "RemoveAsynchronousTask." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RemoveAsynchronousTask.html.
APA
Wolfram Language. (2012). RemoveAsynchronousTask. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveAsynchronousTask.html
BibTeX
@misc{reference.wolfram_2026_removeasynchronoustask, author="Wolfram Research", title="{RemoveAsynchronousTask}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/RemoveAsynchronousTask.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_removeasynchronoustask, organization={Wolfram Research}, title={RemoveAsynchronousTask}, year={2012}, url={https://reference.wolfram.com/language/ref/RemoveAsynchronousTask.html}, note=[Accessed: 15-June-2026]}