Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JavaScript C#
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENCE
README.md
index.cs
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.