Re:Show HN: Riko – A Python stream processing engine modeled...
by greenshackle on Thursday July 21, 2016 @02:35PM
(#12138972)
Python 3.5 introduced the async/await syntax, I don't do C# but at a glance it's the same.
I've been working on a similar project and I've also found the push model easier.
But, I see what you mean. I had to deal with similar issues in commercial projects and the "pull" model (generators in Python ~ "yield return" in C#) almost never a good idea, especially when you have to have concurrent consumers. While callbacks are hard to combine, in C# it can be nicely abstracted with “async/await”, not sure how it is handled in Python, I stopped using it around 2.5