WaitAsynchronousTask

WaitAsynchronousTask 正在逐步被 TaskWait 取代,它是在版本 11.2 被试验性引进.

WaitAsynchronousTask[task]

等待 task 完成.

更多信息和选项

  • task 是一个 AsynchronousTaskObject 表达式.
  • WaitAsynchronousTask 等待 task 完成.
  • 可以给出下列选项:
  • "Timeout" Infinity返回前等待的时间

范例

打开所有单元关闭所有单元

基本范例  (1)

开始一个异步任务,等待它完成,这等价于同步运行任务:

选项  (1)

"Timeout"  (1)

等待异步任务完成,然后继续,即使未完成:

Wolfram Research (2012),WaitAsynchronousTask,Wolfram 语言函数,https://reference.wolfram.com/language/ref/WaitAsynchronousTask.html.

文本

Wolfram Research (2012),WaitAsynchronousTask,Wolfram 语言函数,https://reference.wolfram.com/language/ref/WaitAsynchronousTask.html.

CMS

Wolfram 语言. 2012. "WaitAsynchronousTask." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/WaitAsynchronousTask.html.

APA

Wolfram 语言. (2012). WaitAsynchronousTask. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/WaitAsynchronousTask.html 年

BibTeX

@misc{reference.wolfram_2024_waitasynchronoustask, author="Wolfram Research", title="{WaitAsynchronousTask}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/WaitAsynchronousTask.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_waitasynchronoustask, organization={Wolfram Research}, title={WaitAsynchronousTask}, year={2012}, url={https://reference.wolfram.com/language/ref/WaitAsynchronousTask.html}, note=[Accessed: 18-November-2024 ]}