AllenNeuralDynamics / AllenNeuralDynamics/one-liner
RouterClient.call should just return function return
- Ngôn ngữ chính
- Python
- Star
- 3
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Currently, `RouterClient.call` returns `tuple[float, Any]`, with a server-provided timestamp along with the object returned by the remote function. While it's useful to have the timestamp to know if the received value is old or something, maybe the client should just deal with it and not provide it to the user.
There could be a normal `call -> Any` method, and a `call_with_timestamp: tuple[float, Any]` to provide it upon request. Maybe also the client could have a configurable recency threshold, and compare the age of the received response.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.