zenoh icon indicating copy to clipboard operation
zenoh copied to clipboard

Make get() return a stream of Result

Open Mallets opened this issue 3 years ago • 1 comments

When issuing a query via a get() operation, a stream of Sample is received. However, while receiving all the Sample, some error may occur while resolving the query.

E.g., the query may have timed-out, the target queryable(s) didn't understand the query selectors, consolidation can not be fully performed for memory consumption reasons (e.g., too many resource keys), etc.

As a consequence of that, it is advisable to return a stream of Result so as to inform the user wether any error occurred.

Mallets avatar Apr 07 '22 13:04 Mallets

99835bbabe100656e0824c06806765d01003b6bb has been merged into api-changes branch. This issue will need to be closed manually once api-changes is merged into master.

Mallets avatar Apr 20 '22 08:04 Mallets

Merged into master.

Mallets avatar Sep 28 '22 09:09 Mallets