Ben Lesh
Ben Lesh
😄 There's a lot of text up there. I just to point a few basic things out: The async/await examples above do indeed _look_ simpler, but they lack true cancellation....
And just to be clear, I know that I'm the one who mentioned `debounce` and `switchMap` above. But the reality is we're probably not going to get both of those....
FWIW, `flatMap` (which is `concatMap` in RxJS terms) uses the _exact same strategy_ as conversion to an async iterable does. They really aren't any different. ```ts source.flatMap(async (v) => {...
FWIW: I'm 100% in favor of interop between different types. It's very useful.
So I can give you some information about what I've seen at scale, with some anecdotes from Google's HUGE number of build targets using RxJS. `Observable` should also have `catch`,...
> > retry/repeat > Yeah, I can't think of how those could possibly make sense on iterators. Seperately, they're also kind of scary - I'm not sure I'd want to...
In a (probably poorly conducted) poll of ~800 respondents on what RxJS operators they use, The top twenty are: Operator | Percentage (%) -- | -- map | 83.5443038 switchMap...
> In terms of API I think it's important to consider compatibility with https://github.com/tc39/proposal-iterator-helpers and https://github.com/tc39/proposal-explicit-resource-management . Full agreement. To that end, I had told @domfarolino that we should try...
> fwiw i think this utterly belongs in TC39 and nowhere else Years ago when I wrote the WHATWG issue, discussing with @domenic, he believed it did _not_ belong in...
Sort of a shame, `postTask` isn't very ergonomic if you need to cancel the task though, because it's promise-based. So you're forced to handle a rejection or get noisy error...