Tasks
'Tasks' interface manages execution of our algorythmic code. It can be use to explicitly call our functions, or to enable or disable specific functions in real-time.
#
Tasks.callExecute a specific task. This is a blocking call. The execution of your code will halt until "Mytask" has completed. When called explicitly via this method, a task will be executed regardless if it is enabled or not. This gives control over explicit vs implicit execution of tasks.
Tasks.call("Mytask")
#
Tasks.callAsyncExecute a task given a task name, however, this is a non-blocking call. The task "Mytask" will not hold up the execution of the remainder of your function. When called explicitly via this method, a task will be executed regardless if it is enabled or not.
Tasks.callAsync("Mytask")
#
Tasks.enableEnables execution of a task. In the UI, the task will be marked with a green dot.
Tasks.enable("Mytask")
#
Tasks.disableDisables execution of a task. In the UI, the task will be marked with a red dot.
Tasks.disable("Mytask")