Add streaming events API#57
Conversation
|
@almonteb Thanks for your contribution! But lets discuss... what do you think of push instead of pull? Maybe we need both? I mean polling for an event isn't the best option from the user perspective. Wouldn't it be better to allow registration of a callback that is called by |
|
Actually I like your idea of a callback better. How do you feel about letting the user control the threading for this too? We'll just do the call and everything else on the current thread. |
|
+1 for events callback. We had this working with the older version of the On Fri, Sep 19, 2014 at 10:20 AM, Brendan Almonte notifications@github.com
Ritesh https://www.youtube.com/watch?feature=player_embedded&v=UuXbggrppUE |
|
@patelrit Could you point us to the appropriate code please? @almonteb Not sure about this but for the user it would be even simpler if the API itself starts an internal thread that drives the registered callbacks. What about to use the The current command like API style allows to start a command via Don't know if this would be hard to implement . Its just a quick idea... |
|
Whoops, this is incomplete, needed to get my code online so I could finish it from home. Didn't realize pushing this would add to the pull req. Ignore 3d2a3f0 |
|
@almonteb Thanks again for your effort! |
No description provided.