get_multi_result_with_unique_id
Function Usage
Supports single-thread or multi-thread. unique_id is used to ensure that the result can be correctly obtained in multi-thread scenarios. This function is used together with send_multi_data_with_unique_id() and supports single-output and multi-output.
Prototype
1 | get_multi_result_with_unique_id(unique_id: int, timeout: int) |
Input Parameters
Parameter |
Type |
Description |
|---|---|---|
unique_id |
int |
Unique identifier, which is a variable during declaration sending. |
timeout |
int |
Maximum waiting time, in milliseconds. The default value is 3000 ms (3s). |
Response Parameters
Return Value |
Type |
Description |
|---|---|---|
Output |
List[MxDataOutput] |
Inference result. The number of lists corresponds to the number of output plugins. |
Parent topic: SequentialStream