MCPcopy Index your code
hub / github.com/benfry/processing4 / startTimer

Method startTimer

app/src/processing/app/ui/EditorConsole.java:103–110  ·  view source on GitHub ↗

Start the timer that handles flushing the console text. Has to be started and stopped/cleared because the Timer thread will keep a reference to its Editor around even after the Editor has been closed, leaking memory.

()

Source from the content-addressed store, hash-verified

101 * Editor around even after the Editor has been closed, leaking memory.
102 */
103 protected void startTimer() {
104 if (flushTimer == null) {
105 // periodically post buffered messages to the console
106 // should the interval come from the preferences file?
107 flushTimer = new Timer(250, evt -> flush());
108 flushTimer.start();
109 }
110 }
111
112
113 protected void stopTimer() {

Callers 2

EditorConsoleMethod · 0.95
setCurrentMethod · 0.95

Calls 2

flushMethod · 0.95
startMethod · 0.45

Tested by

no test coverage detected