AllenNeuralDynamics / AllenNeuralDynamics/one-liner

RouterClient.call should just return function return

Đang mở
#34 1 bình luận 0 reaction 1 người được giao Được @Poofjunior nhận Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.