Wait for task complete or timeout.
Parameter
taskHandle Task handle pointer.timeout Timeout configuration (in milliseconds).Return Value
0 means the API was successfully executed, otherwise the execution failed.timeout > 0 represents the wait time.timeout <= 0 represents keep waiting until the task is completed.