JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 31110
  • Score
    100M100P100Q140715F
  • License MIT

parallel async map pull-stream

Package Exports

  • pull-paramap

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-paramap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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