BaseScriptContext.SleepRunnable
com.jsmacrosce.jsmacros.core.language.BaseScriptContext.SleepRunnable
Operation accepted by BaseScriptContext.wrapSleep(SleepRunnable); its run() method may throw InterruptedException.
js
const SleepRunnable = Java.type("com.jsmacrosce.jsmacros.core.language.BaseScriptContext$SleepRunnable");
const operation = new (Java.extend(SleepRunnable))({
run() { Chat.log("operation"); }
});
operation.run();Nested type declared in BaseScriptContext.
Methods
run
run(): void#Runs the blocking operation.