Skip to content

pull-stream/pull-paramap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

parallel mapping pull-stream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •