Object doneResult = spec.get("done", spec);
return doneResult instanceof Boolean && ((Boolean) doneResult);
}
public void execute(RhinoContext baseContext) {
baseContext.runAsync(new RhinoRunnable() {
@Override
public void run(RhinoContext context) {
context.executeFunction(spec, "execute");
}