Skip to content

dominictarr/batchqueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

batchqueue

queue data for an async write but do no parallel writes.

example

say, with leveldb we might want this.

var queue =
  require('batchqueue')
    (function (batch, cb) {
      //there is a chance to add something to the batch here.
      db.batch(batch, cb)
    })

//queue foo to be written
queue({key: foo, value: blah, type: 'put'})

batchqueue only ever processes one batch at a time, so you know for sure that writes are ordered as you expect.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published