MCPcopy Index your code
hub / github.com/csev/py4e / fastPoll

Function fastPoll

tools/pythonauto/static/codemirrorepl/codemirror.js:2192–2201  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

2190 // something in the input textarea, we poll faster, to ensure that
2191 // the change appears on the screen quickly.
2192 function fastPoll(cm) {
2193 var missed = false;
2194 cm.display.pollingFast = true;
2195 function p() {
2196 var changed = readInput(cm);
2197 if (!changed && !missed) {missed = true; cm.display.poll.set(60, p);}
2198 else {cm.display.pollingFast = false; slowPoll(cm);}
2199 }
2200 cm.display.poll.set(20, p);
2201 }
2202
2203 // Read input from the textarea, and update the document to match.
2204 // When something is selected, it is present in the textarea, and

Callers 3

registerEventHandlersFunction · 0.70
onKeyPressFunction · 0.70
codemirror.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected