-
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
Bike-shedding: switchMapFirst
and switchMap
#915
Comments
My initial thought is The downside is I'm not sure |
NOTE: I'd like to get decisions on this very quickly, as I don't want to break the API after beta release, if we can avoid it. |
My gut says |
exhaust or drain. |
it's so focused on whatever observable it has that it ignores all incoming observables until that one observable completes. Then it drops it like it never existed at all and focuses on the very next observable it sees. It's obsessed with whatever observable it gets, so much so that the world around it fades away. Even if the observable it has never emits a value, it'll sit there, staring at it... waiting... watching... But if that observable it gets blasts data at it, it takes it all. It's greedy and patient. It's focused. It doesn't care about just the "first" observable it gets... it cares that it has one, any one, to call it's own, until the observable's death do they part... then it moves on, it wants another. |
|
This minimum thing has been done with #921 |
I liked I don't like |
|
LOL |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
At the very least, we need to change
switchMapFirst
toswitchFirstMap
to match our naming scheme.But
switchFirst
doesn't really seem to name what it's doing.Basically it takes the first Observable it gets and merges it, dropping all subsequent Observables it gets until the first one is complete, then it takes another one.
Ideas I've had so far:
tailDrop
ordropTail
- https://en.wikipedia.org/wiki/Tail_droppick
- because it picks the first and drops the rest until the first is done.chooseFirst
- same as pick, really, but it chooses the first and drops the rest.The text was updated successfully, but these errors were encountered: