nn::boss::Task::WaitFinish Member Functionnn::Result WaitFinish( const nn::fnd::TimeSpan & timeout );
| Name | Description | |
|---|---|---|
| in | timeout | Specifies the timeout period. |
Result values listed below. | Value | Description |
|---|---|
ResultSuccess |
The task finished with TASK_DONE or TASK_ERROR. |
ResultWaitFinishTaskNotDone |
The task was not started (it is in the TASK_REGISTERED state), or the task's execution was stopped (it is in the TASK_STOPPED state). Start the task again and wait for it to finish. |
ResultWaitFinishTimeout |
The WaitFinish function timed out. Wait for the task to finish again. |
ResultInvalidTaskId |
The task ID pointer is NULL or a zero-length string. |
ResultTaskNotExist |
The specified task ID was not found. Confirm whether it has already been registered. |
ResultIpcNotSessionInitialized |
Either the session had not been initialized or there were incompatible permissions. This Result value is returned if you call this function before Initialize or InitializePrivileged. Always call Initialize or InitializePrivileged first when you use the BOSS library. |
| A value other than the above. | Unexpected error (see boss_Result.h for details). |
Waits for a task to finish within the specified time. This is the same as WaitFinish except that it also has a timeout feature. If the timestamp indicating when the URL was modified is the same as the previous timestamp, the task downloads nothing and fails to complete.
CONFIDENTIAL