AllenNeuralDynamics / AllenNeuralDynamics/one-liner

RouterClient.call should just return function return

Aperta
#34 1 commento 0 reazioni 1 assegnatario Rivendicata da @Poofjunior Vedi su GitHub
Lingua principale
Python
Stelle
3
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.