MCPcopy Index your code
hub / github.com/nwutils/nw-sample-apps / slowPoll

Function slowPoll

mini-code-edit/cm/lib/codemirror.js:826–834  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

824
825 var pollingFast = false; // Ensures slowPoll doesn't cancel fastPoll
826 function slowPoll() {
827 if (pollingFast) return;
828 poll.set(options.pollInterval, function() {
829 startOperation();
830 readInput();
831 if (focused) slowPoll();
832 endOperation();
833 });
834 }
835 function fastPoll() {
836 var missed = false;
837 pollingFast = true;

Callers 3

onFocusFunction · 0.85
pFunction · 0.85
rehideFunction · 0.85

Calls 3

startOperationFunction · 0.85
readInputFunction · 0.85
endOperationFunction · 0.85

Tested by

no test coverage detected