bayesline.apiclient.AsyncPydanticTaskClient.wait_result#
- async AsyncPydanticTaskClient.wait_result(timeout: float = -1.0, check_interval: float = 1.0) T #
Wait for the task to complete and return its result.
Parameters#
- timeout: float, default=-1.0
Maximum time in seconds to wait for completion. A negative value means wait indefinitely.
- check_interval: float, default=0.5
Time in seconds between status checks.
Returns#
- T
The result of the task.
Raises#
- TaskError
If the task failed or timed out.