We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b5f8eb commit 7ae5fe7Copy full SHA for 7ae5fe7
src/database.ts
@@ -123,9 +123,9 @@ export class Database extends EventEmitter {
123
124
/** Emits given event with optional arguments on the next tick so callbacks can complete first */
125
private emitEvent(event: string, ...args: any[]): void {
126
- process.nextTick(() => {
+ setTimeout(() => {
127
this.emit(event, ...args)
128
- })
+ }, 0)
129
}
130
131
//
0 commit comments