AllenNeuralDynamics / AllenNeuralDynamics/one-liner

RouterClient.call should just return function return

Open
#34 1 comment 0 reactions 1 assignee Claimed by @Poofjunior View on GitHub
Dominant language
Python
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.