Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor() {
this.results = new Subject();
this.queue = async.queue(({ job }: { job: IQueuedTransactionJob }, cb) => {
delay(1)
.then(() => {
try {
return this.processTransactions(job, cb);
} catch (error) {
console.log(error.stack);
return cb();
}
})
.catch(error => {
console.log(error.stack);
return cb();
});
});