-
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
Defer factory should return ObservableInput, not just Subscribable | PromiseLike #2586
Comments
what's type of |
Updated example. |
Ok, so now I'm more confused. By subject, I guess but,
Would you clarify what's exact issue you're experiencing? |
I would like .concat(Observable.defer(() => [contents.get(uri)])) |
OK, I see now. I personally don't agree with those as it makes defer have polymorphic behavior by allowing I guess I was confused by your subject stating |
But why does it accept |
Subscribable and PromiseLike is Observable-like, both can be subscribe into which isn't polymorphic in terms of ArrayLike is not direct subscribable one need additional execution branching in code, reason I state it as make operator more polymorphic. |
Isn't the the extra branching required for ArrayLike the exact same extra branching required for PromiseLike? ArrayLike needs to check for |
Fixed in #2586 |
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. |
Observable.defer()
takes a factory that takesSubscribable | PromiseLike
. That is very annoying when the value is available synchronously and often results in a lot of boiler plate when usingconcat()
. Simplified example:The text was updated successfully, but these errors were encountered: