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