Warning: session_start(): open(/var/lib/php/sessions/sess_tu73r2vkv2ihbcqtpfmtb9108t, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static ShowBigText showBigText(S title, fO function, final int delayMS) {
final new ShowBigText sbt;
sbt.title = title;
sbt.showText("...");
// awt block is important
installTimer(sbt.is, r {
// This should work even when the function blocks forever (at least we're not calling it repeatedly in that case)
new Thread("Updater") {
boolean running;
public void run() {
if (!running) {
running = true;
S text = null;
try {
O data = callF(function);
if (isString(data))
text = (S) data;
else if (data instanceof S[]) {
S[] x = cast data;
text = x[0];
sbt.title = x[1];
}
} catch (Throwable e) {
e.printStackTrace();
text = exceptionToStringShort(e);
} finally {
running = false;
}
if (text != null)
sbt.showText(text);
}
}
}.start();
}, delayMS, 0);
ret sbt;
}