StopAsynchronousTask[task]
stops asynchronous evaluations from task.
StopAsynchronousTask
StopAsynchronousTask[task]
stops asynchronous evaluations from task.
Details
- task is an AsynchronousTaskObject expression.
- StopAsynchronousTask stops the task without removing it. The task may be reactivated using StartAsynchronousTask.
Examples
Basic Examples (1)
Start a download that takes some time to complete:
progress = 0;
downloadComplete = False;
Row[{"Progress: ", ProgressIndicator[Dynamic[progress]]}]
handleEvent[_, "progress", {bytesReceived_, bytesTotal_, ___}] := (progress = bytesReceived / bytesTotal;)
handleEvent[_, "data", data_] :=
(responseData = data;
MessageDialog["Download complete."])
downloadTask = URLFetchAsynchronous["http://exampledata.wolfram.com/20mb.dat",
handleEvent, Progress -> True]StopAsynchronousTask[downloadTask]StartAsynchronousTask[downloadTask]History
Text
Wolfram Research (2012), StopAsynchronousTask, Wolfram Language function, https://reference.wolfram.com/language/ref/StopAsynchronousTask.html.
CMS
Wolfram Language. 2012. "StopAsynchronousTask." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/StopAsynchronousTask.html.
APA
Wolfram Language. (2012). StopAsynchronousTask. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StopAsynchronousTask.html
BibTeX
@misc{reference.wolfram_2026_stopasynchronoustask, author="Wolfram Research", title="{StopAsynchronousTask}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/StopAsynchronousTask.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_stopasynchronoustask, organization={Wolfram Research}, title={StopAsynchronousTask}, year={2012}, url={https://reference.wolfram.com/language/ref/StopAsynchronousTask.html}, note=[Accessed: 15-June-2026]}