Add negentropy support to executor

This commit is contained in:
Jon Staab
2024-09-26 15:36:01 -07:00
parent bdf0e8b82c
commit 5627721463
18 changed files with 548 additions and 46 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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
}
}
+1 -1
View File
@@ -7,5 +7,5 @@
"skipLibCheck": true,
"lib": ["esnext", "dom", "dom.iterable"]
},
"include": ["**/*.ts"]
"include": ["src/**/*.ts"]
}