({{, StartAsynchronousTask[task]
allows asynchronous evaluations from task after it has been stopped.}})

OpenersNotesSection(Spacer1)Details

task is an (RefLink[AsynchronousTaskObject, paclet:ref/AsynchronousTaskObject]) expression.

StartAsynchronousTask starts the task after it has been stopped with (RefLink[StopAsynchronousTask, paclet:ref/StopAsynchronousTask]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)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]

Stop progress updates:

StopAsynchronousTask[downloadTask]

Resume progress updates:

StartAsynchronousTask[downloadTask]

AsynchronousTasks[]

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