Information about the state of a running task with cancel support. More...
| Header | #include <Task |
| Since | Esri |
| Status | Deprecated |
This class is deprecated. We strongly advise against using it in new code.
Public Functions
| Task | |
| Task | |
| Task | |
| ~ | |
| bool | cancel() |
| Q | description() const |
| bool | is |
| bool | is |
| bool | is |
| Q | task |
| Esri | operator=( |
| Esri | operator=(const Esri |
Detailed Description
TaskWatcher supports examining the state of a task along with the ability to cancel a task.
This class is only copyable for convenience. All copies are shallow copies and reference the same underlying task.
since Esri::ArcGISRuntime 200.2
Member Function Documentation
TaskWatcher::TaskWatcher ()
Default constructor.
TaskWatcher::TaskWatcher (const Esri::ArcGISRuntime::TaskWatcher &other)
Copy constructor from other TaskWatcher.
Note: Both copies will reference the same underlying task.
[noexcept] TaskWatcher::TaskWatcher (Esri::ArcGISRuntime::TaskWatcher &&other)
Move constructor from other TaskWatcher.
[noexcept] TaskWatcher::~TaskWatcher ()
Destructor.
bool TaskWatcher::cancel()
Cancels the task.
Returns true if the task was canceled successfully.
QString TaskWatcher::description() const
Gets the unique task description.
The task description will be a simple description of the task, for example, the task function name.
Returns the task description.
bool TaskWatcher::isCanceled () const
Gets whether the task was canceled.
Returns true if the task was canceled.
bool TaskWatcher::isDone () const
Gets whether the task has come to a terminal state, either canceled or completed.
Returns true if the task is done.
bool TaskWatcher::isValid () const
Gets whether the task was created successfully.
Returns true if the task could be created, otherwise false. If false, then the task's corresponding completed signal will never emit.
QUuid TaskWatcher::taskId () const
Gets the unique task ID associated with this task.
Returns the task id.
[noexcept] Esri::ArcGISRuntime::TaskWatcher &TaskWatcher::operator=(Esri::ArcGISRuntime::TaskWatcher &&other)
Move operator from other TaskWatcher.
Esri::ArcGISRuntime::TaskWatcher &TaskWatcher::operator=(const Esri::ArcGISRuntime::TaskWatcher &other)
Copy assignment from other TaskWatcher.
Note: Both copies will reference the same underlying task.