Skip to content

Raynos/polyphonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published