Task object
Property | Description | Access | Type |
---|---|---|---|
Task.after | Get/set the function to be called once the Task is terminated | readwrite | string |
Task.status | Get the current task status | readonly | string |
Task.terminated | Check if the task is terminated | readonly | boolean |
Method | Description | Return value |
---|---|---|
Task.constructor() | Task object constructor | Task |
Task:cancel() | Cancel task execution | string |
Task:wait() | Wait for the task to terminate | ... |
Operation | Description |
---|---|
Task calling | Start a task by calling it as a function |