Promise to give back a readable stream later
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
.gitignore
LICENCE
README.md
index.js
package.json

README.md

eventual-stream

Promise to give back a readable stream later

Example

var from = require("read-stream").fromArray
    , to = require("write-stream").toArray
    , EventualStream = require("eventual-stream")

var fulfill = EventualStream()

fulfill.stream.pipe(to(function (list) {
    console.log("eventual", list)
}))

setTimeout(function () {
    fulfill(from([1,2,3]))
}, 1000)

Installation

npm install eventual-stream

Contributors

  • Raynos

MIT Licenced