-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(operator): add concurrency parameter to switchMap #215
Comments
Hmm... I think flatMap and flatMap latest should support concurrency limits regardless. Considering they're basically sugar for |
Oh cool! I didn't know mergeAll() had a concurrency param. It doesn't in Reactive-Extensions/RxJS. That's great. |
So |
so it should be: function flatMapLatest<T, R>(project: (value:T) => Observable<R>, concurrent: number = Number.POSITIVE_INFINITY): Observable<R> again this is a top priority for what I need, so if someone doesn't pick this up in the next few minutes I'm all over it. |
Bikeshedding: why the |
As I understood:
More you can read in our discussion with @paulpdaniels Reactive-Extensions/RxJS#793 (comment) |
So digging into this... what is the point of the I'm not sure how I missed that, I was more freaking out that it hadn't been implemented yet. |
with |
Oh... interesting. Yeah, I don't see why not. I guess it should default to one then ;) haha. |
Hi @Blesh. Where can I take a look on all implemented methods(some list of methods)? |
So, we have |
@xgrommx you can find them all either in |
Oh yeah how could I forget that flatMapLatest was renamed to switchLatest. We talked so much about mergeMap/switchMap/concatMap. By the way, will switchLatest be named switchMap? |
I think this requires a lot more discussion, honestly. Digging into this issue, to do it properly is non-trivial. I've found a few other issues I'd like to refactor before I tackle this. I'll need to think about this a little more. |
@Blesh @staltz since At first glance, I think we'd only need to make the following four changes:
|
I've renamed this issue to make it more accurate as to the request. |
Closing in favor of #347 |
like `undefined` fixes ReactiveX#215
like `undefined` fixes ReactiveX#215
like `undefined` fixes ReactiveX#215
like `undefined` fixes ReactiveX#215
This issue is just a heads-up about an operator that could be added to RxJS Next. I can also see this used through
lift
instead of bundling it straight in the library.Basically flatMapLatestWithMaxConcurrency:
http://stackoverflow.com/questions/32233408/how-to-implement-rxjs-flatmaplatesttwo
What do you think?
The text was updated successfully, but these errors were encountered: