MCPcopy Create free account
hub / github.com/apache/pouchdb / enqueueTask

Function enqueueTask

lib/index-browser.js:5660–5671  ·  view source on GitHub ↗
(action, callback, PouchDB)

Source from the content-addressed store, hash-verified

5658}
5659
5660function enqueueTask(action, callback, PouchDB) {
5661 queue.push(function runAction() {
5662 action(function runCallback(err, res) {
5663 tryCode(callback, err, res, PouchDB);
5664 running = false;
5665 nextTick(function runNext() {
5666 applyNext(PouchDB);
5667 });
5668 });
5669 });
5670 applyNext();
5671}
5672
5673function changes(opts, api, dbName, idb) {
5674 opts = clone(opts);

Callers 1

IdbPouchFunction · 0.70

Calls 2

tryCodeFunction · 0.70
applyNextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…