MCPcopy Create free account
hub / github.com/sql-js/sql.js / slowPoll

Function slowPoll

GUI/codemirror/lib/codemirror.js:2195–2201  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2193 // Poll for input changes, using the normal rate of polling. This
2194 // runs as long as the editor is focused.
2195 function slowPoll(cm) {
2196 if (cm.display.pollingFast) return;
2197 cm.display.poll.set(cm.options.pollInterval, function() {
2198 readInput(cm);
2199 if (cm.state.focused) slowPoll(cm);
2200 });
2201 }
2202
2203 // When an event has just come in that is likely to add or change
2204 // something in the input textarea, we poll faster, to ensure that

Callers 3

pFunction · 0.85
onFocusFunction · 0.85
rehideFunction · 0.85

Calls 1

readInputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…