AllenNeuralDynamics / AllenNeuralDynamics/one-liner

Consider making Stream objects

Aperta
#31 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
3
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently, setting up a stream looks like calling `server.add_stream(...)`, which doesn't return a stream object, or even really create an inspectable stream object. There's another option, of calling `server.get_stream_fn` which sets up a manual stream and returns a callable to add an item to the stream.

I think it would be better if we organized it around `Stream` objects, which kind of feel like Queues. This would simplify the api and make it more recognizable.

Stream Features:
User can always manually `put` to a stream
Stream can be configured to poll a function periodically
User can list or update stream configuration

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.