0.1.0 • Published 11 years ago

polyphonic v0.1.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

polyphonic

NPM version

join-calculus as async flow control

Example

var polyphonic = require("polyphonic")

var Buffer = polyphonic([
    ["get", "async put", function (s) {
        return s
    }]
])

var buffer = Buffer()

var one = buffer.get()(function (err, value) {

})
var two = buffer.get()(function (err, value) {

})

// some time later!!

buffer.put("hello")
buffer.put("world")

// now the get calls have their callbacks invoked

Installation

npm install polyphonic

Contributors

  • Raynos

MIT Licenced