bsh.util.commands.bg.bsh Maven / Gradle / Ivy
The newest version!
/**
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 - 2024 Weber Informatics LLC | Privacy Policy