Closed dsherret closed 8 months ago
Before:
export interface CommandPipeWriter extends WriterSync { writeSync(p: Uint8Array): number; writeText(text: string): void; writeLine(text: string): void; }
After:
export interface CommandPipeWriter { write(p: Uint8Array): Promise<number> | number; writeText(text: string): Promise<void> | void; writeLine(text: string): Promise<void> | void; }
For performance, check if the write in a command returns a promise. If it does, then continue async, otherwise continue sync.
Closes https://github.com/dsherret/dax/issues/224
Before:
After:
For performance, check if the write in a command returns a promise. If it does, then continue async, otherwise continue sync.
Closes https://github.com/dsherret/dax/issues/224