Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

for consuming 'streaming APIs', why not just use observables (rx.js etc)?


Observables are great, and are indeed the stream equivalent to Tasks. But the await/async keyword compilation doesn't support them. I think that's the parent post's point.


I've seen stream-like constructs done with c# async and await and to me it even looked elegant.

Could you expand on in what way you think async and await is insufficient with regards to streams? I'm genuinely curious.


Would you have a link to an example of a streaming API done elegantly with async?

I'm interested to see what it looks like.


It was during a presentation on the NDC developer conference a few years back, when the feature was new to C#. I remember thinking it was one of the best presentations that year, but right now I don't remember what year it was, and I can't find any past agendas to search either.

NDC posts their videos online after each conference, and I did a quick skim. I think it may be this session here, but I haven't double-checked:

https://vimeo.com/43808831

Edit: It was a 2-part session and it may also have been in second half. Link here:

https://vimeo.com/43808833


Much appreciated ta, will give it a look.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: