MCPcopy Create free account
hub / github.com/choosehappy/QuickAnnotator / scheduleProcessQueue

Function scheduleProcessQueue

static/js/angular.js:17986–17997  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

17984 }
17985
17986 function scheduleProcessQueue(state) {
17987 if (errorOnUnhandledRejections && !state.pending && state.status === 2 && !isStateExceptionHandled(state)) {
17988 if (queueSize === 0 && checkQueue.length === 0) {
17989 nextTick(processChecks);
17990 }
17991 checkQueue.push(state);
17992 }
17993 if (state.processScheduled || !state.pending) return;
17994 state.processScheduled = true;
17995 ++queueSize;
17996 nextTick(function() { processQueue(state); });
17997 }
17998
17999 function resolvePromise(promise, val) {
18000 if (promise.$$state.status) return;

Callers 3

qFactoryFunction · 0.85
$$resolveFunction · 0.85
$$rejectFunction · 0.85

Calls 2

isStateExceptionHandledFunction · 0.85
processQueueFunction · 0.85

Tested by

no test coverage detected