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

Function tryCode

lib/index-browser.js:5641–5650  ·  view source on GitHub ↗
(fun, err, res, PouchDB)

Source from the content-addressed store, hash-verified

5639var queue = [];
5640
5641function tryCode(fun, err, res, PouchDB) {
5642 try {
5643 fun(err, res);
5644 } catch (err) {
5645 // Shouldn't happen, but in some odd cases
5646 // IndexedDB implementations might throw a sync
5647 // error, in which case this will at least log it.
5648 PouchDB.emit('error', err);
5649 }
5650}
5651
5652function applyNext() {
5653 if (running || !queue.length) {

Callers 1

enqueueTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…