Add negentropy support to executor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {EventEmitter} from 'events'
|
||||
|
||||
export class Emitter extends EventEmitter {
|
||||
emit(type: string | number, ...args: any[]) {
|
||||
emit(type: string, ...args: any[]) {
|
||||
const a = super.emit(type, ...args)
|
||||
const b = super.emit('*', type, ...args)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ export class Worker<T> {
|
||||
|
||||
#enqueueWork = () => {
|
||||
if (!this.timeout && this.buffer.length > 0) {
|
||||
this.timeout = setTimeout(this.#doWork, 50)
|
||||
this.timeout = setTimeout(this.#doWork, 50) as unknown as number
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user