-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[FEATURE ember-metal-stream] #9693
Conversation
a6007e9
to
92d0d49
Compare
92d0d49
to
1e31f49
Compare
@Private, or |
Are Stream's ever going to be exposed? I'm just wondering if the way I've implemented a 'lookup' helper should/will change. Since its supposed to return a stream that changes independent of either the 'obj' (params[0]) or 'key' (params[1]) streams I couldn't see how it could I could implement this as a regular bound helper and/or without Streams
|
Rebased, and updated to ensure everything exposed is properly marked as private. |
4d89d83
to
61747d3
Compare
@mmun this is for you to merge imo. It is behind a FF and private, low risk. @jmurphyau we definitely want to expose them- but we're also wary of formalizing an API before it settles. If you need to reach for streams in your application code, it probably points to a missing API at a higher level. |
@jmurphyau This seems like a good ember add-on: EDIT: Actually may we can just add this to KeyStream. There's basically no cost to it. |
Rebased. |
@rwjblue I don't see the point of exposing them privately. It's not much better then |
@mmun - So make the util methods |
@rwjblue All public, I think! I think we should jam everything into
|
Expose the base internal stream implementation as `Ember.Streams.Stream`, and the group of utility functions as `Ember.Streams.utils`.
@mmun - Updated. |
Excellenté |
@@ -327,6 +341,23 @@ Ember.isPresent = isPresent; | |||
|
|||
Ember.merge = merge; | |||
|
|||
if (Ember.FEATURES.isEnabled('ember-metal-stream')) { | |||
Ember.stream = { | |||
Stream: Stream, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ember.stream.Stream
seems weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. This is my "fault". I wanted to put everything in Ember.stream._
because I expect it will become import _ from "ember-streams"
.
Expose the base internal stream implementation as
Ember.Stream
.