$CurrentTask

$CurrentTask

给出对应的被计算的任务的 TaskObject[].

更多信息

  • 当在任务对象或由任务产生的事件句柄函数中被计算时,$CurrentTask 被设置为当前的 TaskObject.
  • 如果不是在任务对象中被计算,$CurrentTask 给出 None.

范例

基本范例  (4)

创建一个任务并显示可用的属性:

显示任务识别器:

打印任务的当前状态:

打印任务的运行计数:

使用 $CurrentTask 打印以前和剩下的运行计数:

Wolfram Research (2017),$CurrentTask,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$CurrentTask.html.

文本

Wolfram Research (2017),$CurrentTask,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$CurrentTask.html.

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2024_$currenttask, author="Wolfram Research", title="{$CurrentTask}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$CurrentTask.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$currenttask, organization={Wolfram Research}, title={$CurrentTask}, year={2017}, url={https://reference.wolfram.com/language/ref/$CurrentTask.html}, note=[Accessed: 21-November-2024 ]}