Task object
The Task object runs functions in parallel to the main flow
| Operation |
Description |
| Task calling |
Start a task by calling it as a function |
| Property |
Description |
Access |
Type |
| Task.after |
Get/set the function to be called once the Task is terminated |
readwrite |
string |
| Task.expired |
Check if the current task expired |
readonly |
boolean |
| Task.priority |
Get/set the current task priority |
readwrite |
number |
| Task.status |
Get the current task status |
readonly |
string |
| Task.terminated |
Check if the task is terminated |
readonly |
boolean |
| Task.timeout |
Get/set the current task timeout |
readwrite |
number |