def _call_into_background(self, t): with qore_utils.notify_error(self._errorLog): with qore_utils.notify_busy(self._errorLog, "Counting..."): print "Start count" yield self._busyWait.wait, (t, ), {} print "Count done"
def _on_exception(self, *args): with qore_utils.notify_error(self._errorLog): l = [1, 2, 3] print l["a"]