fix(core): update

This commit is contained in:
Philipp Kunz 2024-03-19 19:39:54 +01:00
parent 16c7ce2394
commit 36d4462504
2 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/tapbundle', name: '@push.rocks/tapbundle',
version: '5.0.21', version: '5.0.22',
description: 'tap bundled for tapbuffer' description: 'tap bundled for tapbuffer'
} }

View File

@ -143,6 +143,17 @@ export class Tap<T> {
} }
} }
public async stopForcefully(codeArg = 0, directArg = false) {
console.log(`tap stopping forcefully! Code: ${codeArg} / Direct: ${directArg}`);
if (directArg) {
process.exit(codeArg);
} else {
setTimeout(() => {
process.exit(codeArg);
}, 10)
}
}
/** /**
* handle errors * handle errors
*/ */