ResetScheduledTask

ResetScheduledTask is being phased out in favor of TaskObject, which was introduced experimentally in Version 11.2.

ResetScheduledTask[obj,timespec]

resets the timing for a scheduled task to timespec.

ResetScheduledTask[obj,timespec,offset]

resets the time offset for a scheduled task to offset.

Details and Options

  • ResetScheduledTask returns a single ScheduledTaskObject expression or a list of expressions.
  • ResetScheduledTask stops the task if it was running.
  • When the task is reset, the time until the next activation is set to the full time interval.
  • ResetScheduledTask has attribute Listable.

Examples

Basic Examples  (4)

Reset and restart the timer after it is expired:

Reset the timer before its expiration:

Create a task with random wait periods:

Create a task that restarts evaluation as soon as it finishes:

Wolfram Research (2010), ResetScheduledTask, Wolfram Language function, https://reference.wolfram.com/language/ref/ResetScheduledTask.html (updated 2014).

Text

Wolfram Research (2010), ResetScheduledTask, Wolfram Language function, https://reference.wolfram.com/language/ref/ResetScheduledTask.html (updated 2014).

CMS

Wolfram Language. 2010. "ResetScheduledTask." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/ResetScheduledTask.html.

APA

Wolfram Language. (2010). ResetScheduledTask. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ResetScheduledTask.html

BibTeX

@misc{reference.wolfram_2024_resetscheduledtask, author="Wolfram Research", title="{ResetScheduledTask}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ResetScheduledTask.html}", note=[Accessed: 25-June-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_resetscheduledtask, organization={Wolfram Research}, title={ResetScheduledTask}, year={2014}, url={https://reference.wolfram.com/language/ref/ResetScheduledTask.html}, note=[Accessed: 25-June-2024 ]}