queued-chunk-store
Queued .get for abstract-chunk-store compliant stores
Makes sure store.get
always return a result finally. The callback for store.get
is queued until a corresponding store.put
is done.
Install
npm install queued-chunk-store
Usage
var Queued = var MemoryChunkStore = // any chunk store will work var store = 10 // callback will execute when a .put with index 0 is donestore // .put will execute the queued callback for .getstore
License
MIT. Copyright (c) Chan Guan Hao.