Closed obaidott closed 7 years ago
@phillipskevin can't this be closed as now can-stream and can-stream-kefir exist?
@chasenlehara maybe you can look into this i think can-stream got created already or this is the wrong repo anyway for that proposal
Proposal:
Goals:
Stream API:
can-stream:
exports
function(canStreamInterface)
Exports a function that takes acanStreamInterface
and returns acanStreaming
object with the following methods:.toStream(observable, propAndOrEvent[,event])
.toStreamFromProperty(property)
?.toStreamFromEvent(property)
?.toCompute(makeStream(setStream), context):compute
canStreamInterface:
Any
can-stream-X
library should implement the following methods:can-define-stream:
exports
function(canStreamInterface)
Exports a function that takes acanStreamInterface
and returns a function that takes a Type and uses the supplied canStreamInterface to create streamed property definitions and a.toStream
method.returns
function(Type)
That adds the following methods:DefineMap.prototype.toStream(propAndOrEvent)
DefineMap.prototype.toCompute(stream)
DefineMap.prototype.toStreamFromProperty(property)
?DefineMap.prototype.toStreamFromEvent(property)
?Finds any
propertyDefinition
with astream
behaviour and makes the property take on the value of the stream.Usage: