public bool needsPause() { if (slowTaskDetector == null) { return(false); } return(slowTaskDetector.checkWithinTimeLimit()); }
public static bool safeCheckTimeLimit(this SlowTaskDetector task) { if (task == null) { return(true); } return(task.checkWithinTimeLimit()); }
public void checkRepaint() { if (repaintTrigger == null) { return; } if (repaintTrigger.checkWithinTimeLimit()) { return; } repaintWindow(); }