synonym for delayWhen as waitFor? #6019
Replies: 1 comment 1 reply
-
This is my first time seeing
This is the same way I think naming it I'm not saying the RxJS naming scheme is great, I'm saying what you're proposing doesn't fit with it. If you really wanted to alias it, which would confusing to other developers, I'd recommend doing |
Beta Was this translation helpful? Give feedback.
-
This is just a suggestion, but
delayWhen()
could use a synonym (or a rename?) aswaitFor()
orwaitUntil()
. For the second time in a couple of years, I had the need to wait for an observable to complete but ignore its return value and instead use the previous value in the pipe(). Something like:Both times it took me way too long to figure out that
delayWhen()
wasn't likedelay()
and had very little to do with time (which is what I think about when I hear delay). Someone on SO bailed me out today. And it reminded me that a couple of years back, I had created just that,The above code would read so much better with
waitFor()
:Beta Was this translation helpful? Give feedback.
All reactions