Skip to content

queue API methods run

Steve edited this page Apr 29, 2020 · 2 revisions

abort( ):boolean

Aborts queue execution.

getRunning( ):boolean

Returns if the queue is currently running.

run():Promise <boolean>

Execute queued commands.

runWithResults( ):Promise <results:any[]>

Execute queued commands and output the results to standard out.

const queue = client.createQueue({continueOnError:false});
queue.login("user", "password");
queue.logout();

// the following line actually starts the execution
queue.run();

Clone this wiki locally