Rspress

# #hbUCPWaitTaskDone

`int32_t hbUCPWaitTaskDone(hbUCPTaskHandle_t taskHandle, int32_t timeout);`

Wait for task complete or timeout.

- Parameter

  - [in] `taskHandle` Task handle pointer.
  - [in] `timeout` Timeout configuration (in milliseconds).

- Return Value

  - Return `0` means the API was successfully executed, otherwise the execution failed.

Note

1. `timeout > 0` represents the wait time.
2. `timeout <= 0` represents keep waiting until the task is completed.

On This Page