pull-paramap
parallel async map pull-stream
Last updated 9 years ago by dominictarr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install pull-paramap 
SYNC missed versions from official npm registry.

pull-paramap

parallel mapping pull-stream.

travis

testling

example

var pull = require('pull-stream')
var paramap = require('pull-paramap')

pull(
  pull.values([....]),
  //perform an async job in parallel,
  //but return results in the same order as they went in.
  paramap(function (data, cb) {
    asyncJob(data, cb)
  }, width), //optional number.
             //limits stream to process width items at once
  pull.collect(cb)
)

pull(
  pull.values([....]),
  //perform an async job in parallel,
  //and return results in the order they arrive
  paramap(function (data, cb) {
    asyncJob(data, cb)
  }, null, false), // optional flag `inOrder`, default true
  pull.collect(cb)
)

License

MIT

Current Tags

  • 1.2.2                                ...           latest (8 years ago)

14 Versions

  • 1.2.2                                ...           8 years ago
  • 1.2.1                                ...           8 years ago
  • 1.2.0                                ...           8 years ago
  • 1.1.6                                ...           9 years ago
  • 1.1.4                                ...           9 years ago
  • 1.1.3                                ...           9 years ago
  • 1.1.2                                ...           9 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.5                                ...           11 years ago
  • 1.0.3                                ...           11 years ago
  • 1.0.2                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE