static OKOrError okOrError(IF0 f, bool printStackTrace default true) {
try {
ret OKOrError_ok(f!);
} catch e {
if (printStackTrace) printStackTrace(e);
ret OKOrError_error(e);
}
}
static OKOrError okOrError(Runnable r) {
ret okOrError(runnableToIF0(r));
}