
bsh.commands.bg.bsh Maven / Gradle / Ivy
/**
Source a command in its own thread in the caller's namespace
This is like run() except that it runs the command in its own thread.
Returns the Thread object control.
@method Thread bg( String filename )
*/
bsh.help.run= "usage: Thread bg( filename )";
Thread bg( String filename )
{
this.callerNameSpace = this.caller.namespace;
run() {
this.interpreter.source( filename, callerNameSpace );
}
this.thread = new Thread( this );
thread.start();
return thread;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy